Hi,
What is a working CSS code to apply a color to an horizontal rule and working both in Internet Explorer and Netscape?
Thanks
| SitePoint Sponsor |

Hi,
What is a working CSS code to apply a color to an horizontal rule and working both in Internet Explorer and Netscape?
Thanks





Netscape doesn't support color of the horizontal ruler. It's an IE thing.

damn....
you netscape guys! I can't believe over 20% of users get that browser
I am sad now





lol..i love that reaction tabsquare. sounded like you had high hopes for that feature..and it was daunted when netscape didn't support it..ahah
fret not..there are alternatives.
you can cretae a 1 X 1 pixel image with the colour you want, then for the image tag, specify the width for as long as you want. a good replacement for the horizontal rule.
OR
for a simple line, '<hr width="100%" noshade size="1">'
would do. =)
have a pleasant day!
"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
-- Albert Einstein

eh eh, netscape, if they don't bring it a bit more html compatible, hopefully it should die.
I pretty like the pixel image trick.
Thanks for the tricks![]()





no prob.
make sure its 1 X 1, so you save on the filesize and loading time.
do note that if you test your site with mozilla browsers too..be sure to get the latest version..at least 0.8....as there was a bug involved in this trick in mozilla builds... which would cause the line to blink. ( happens in netscpae 6 if I'm correct, as it uses an older build )
Last edited by lynlimz; Mar 28, 2001 at 04:08.
"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
-- Albert Einstein
Bookmarks