Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



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
Trades: 0
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
 
 
Register now for full access!
Old 08-18-2006, 12:46 PM Re: no border-color in position:relative in firefox
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

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: 635
Trades: 0
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
Trades: 0
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
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.63501 seconds with 12 queries