I have this code
<hr style="margin-top: 5px; color: #ada95b; width: 500px;"/>
However this is only working in Firefox, and not working on my versions of Chrome and IE. What way is best to style them and they will work in all browsers?
best way is removing the border and putting a color to background.. i.e.
<hr style="margin-top: 5px; height: 2px; border: none; background: #ada95b; width: 500px;"/>
Regarding the color
, browsers treat it differently, you should also set background-color
.
This is a quite old article, but might still help.
http://www.sovavsiti.cz/css/hr.html
You can also get some ideas here:
http://webdesign.about.com/od/beginningcss/a/style_hr_tag.htm
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With