HR Colour

liunx

Guest
This is probably quite stupid, but how do you define the colour of a <HR> in Netscape (4.x)?<br />
<br />
Should:<br />
<br />
<hr background-color="#009933" size="1" color="#009933"><br />
<br />
Work?<!--content-->Here's a cross-browser method that seems to work.<br />
<br />
<style type="text/css"><br />
<!--<br />
hr {<br />
color: blue;<br />
background-color: blue;<br />
border: 0;<br />
height: 1px;<br />
}<br />
<br />
--><br />
</style><!--content-->Originally posted by Geat <br />
Should:<br />
<br />
<hr background-color="#009933" size="1" color="#009933"><br />
<br />
Work?No. <HR> has no text, so I would doubt there is any background. The tag is defined at <!-- m --><a class="postlink" href="http://developer.netscape.com/docs/manuals/htmlguid/tags15.htm#1045422">http://developer.netscape.com/docs/manu ... tm#1045422</a><!-- m --> and has no provision for any colors. If you want cross-browser compatible "rules", try using an image:<br />
<br />
<img src=http://www.webdeveloper.com/forum/archive/index.php/"red.gif" height=4px width=100%><!--content-->For some reason the style sheet method isn't working in NS 4.7. Never mind, it's only a pixel's height, not really that noticeable. I'll cut my losses and leave it.<!--content--><div style="background-color:#9E575A; font-size:2px; border:1px solid #000000;">non breaking space code</div><br />
<br />
I haven't tried this on old Netscape browsers, but you could try it out.<!--content-->That's quite a good little idea, and I'll use it if I have to...<br />
<br />
Cheers!<!--content-->
 
Back
Top