Reply
no border-color in position:relative in firefox
Old 08-18-2006, 12:35 PM no border-color in position:relative in firefox
Junior Talker

Posts: 3
Name: Bill
I had a layer positioned absolutely that would appear when a user entered data with a red border, because the content above the form is dynamic, the layer was not always apearing in the correct place so I switched it to relative positioning.

It works in ie, but in firefox it no longer has a border.

here is the div tag: <div id="ID#styleid#" style="border:solid; padding-left:3px; padding-right:3px; padding-top:3px; padding-bottom:3px; border-width:1; border-color:ff0000; width:400px;background-color:ffffff; display:none; position:relative;left:0;top:0" >


Thanks,
Bill
bmcclure is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 08-18-2006, 12:46 PM Re: no border-color in position:relative in firefox
LadynRed's Avatar
Super Moderator

Posts: 6,907
Location: Tennessee
Your code is incorrect.

You've got border-width: 1 -- 1 WHAT ?? If you define a width, you must tell it what measure to use. Make it 1px.
border: 1px solid #ff0000;

The color numbers are also incorrect. You MUST include the # in front of a hex color number.

I hope you're putting all that styling in an external file.

The positioning has no bearing whatsoever on the presence or absence of a border.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-18-2006, 12:48 PM Re: no border-color in position:relative in firefox
funkdaddu's Avatar
Web Design Snob

Posts: 636
border: needs to be border-style:, or just make all your border statements into one:
Code:
border: 1px solid #ff0000
Plus make sure to use the hash mark (#) before any hex colors

EDIT: I also don't think your ID is very valid: id="ID#styleid#" using hash marks is a no-no as that's how you mark it up in your CSS selector.

Last edited by funkdaddu : 08-18-2006 at 12:52 PM.
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 08-18-2006, 06:44 PM Re: no border-color in position:relative in firefox
Junior Talker

Posts: 3
Name: Bill
Thanks everyone.

Unfortunately I had tried it w & w/o px and w & w/o the hash. Postion should not make a difference but the div positioned with an absolute tag has a border even w/o px or #. The div tag that has a relative position does not - the only fiddiference is the position- hunh!

see for yourself:
absolute: Humanscale
relative: Humanscale

you will have to put a quantity in the first qunatity field. Since it has a top and left setting of "0", the absolute box is way up in the upper left corner.
bmcclure is offline
Reply With Quote
View Public Profile
 
Old 08-18-2006, 06:46 PM Re: no border-color in position:relative in firefox
Junior Talker

Posts: 3
Name: Bill
Also - thanks funkydadu -

in the code
id="ID#styleid#"
The # bracket a variable and are parsed in the server.
bmcclure is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to no border-color in position:relative in firefox
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13008 seconds with 12 queries