Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HR - Firefox - IE7 2

Status
Not open for further replies.

MarkZK

Technical User
Jul 13, 2006
202
GB
Hi,

Using this HTML/CSS code,

<hr style="color:green">

the HR does show as green in IE7 but doesn't in FF2.0, as Firefox is nomally right, what am I doing wrong ?

just to note, <hr color="green"> works in both but isn't valid.

Thanks for your time.
 
ahh that one has bothered me for years. Thanks!
Which properties work

Various CSS properties can be applied on <hr>:

* All three browsers allow setting width and height of the <hr> element.
* The border property can be used in IE and Mozilla. It does not work well in Opera (see examples below).
* IE uses the color property for the <hr> element.
* Opera and Mozilla use background-color for the <hr> element.
* All three browser allow setting a background-image of the <hr> element, however this is not very useful in IE and Opera (see the last example).


-Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top