nihalz
08-20-2007, 05:17 PM
hi
i am trying to use the <hr> tag in a XHTML page...
at first i used this
<hr color="blue">
but when i tried to validate the code at w3.org, i got the error that
there is no attribute "color"
so after some researching i found that i had to use the style attribute to give a color...so i did that...
<hr style="color:blue; size:2px;" />
but now there is no color on the horizontal line and i am also not able to change the height of the horizontal line either using the size attribute or the style attribute..
what am i doing wrong?
any suggestions?
thanks!
EDIT: I just found out that it works in IE6 but not in FF..which came as a surprise to me...anyone know how to make it work in FF?
i am trying to use the <hr> tag in a XHTML page...
at first i used this
<hr color="blue">
but when i tried to validate the code at w3.org, i got the error that
there is no attribute "color"
so after some researching i found that i had to use the style attribute to give a color...so i did that...
<hr style="color:blue; size:2px;" />
but now there is no color on the horizontal line and i am also not able to change the height of the horizontal line either using the size attribute or the style attribute..
what am i doing wrong?
any suggestions?
thanks!
EDIT: I just found out that it works in IE6 but not in FF..which came as a surprise to me...anyone know how to make it work in FF?