I've got the following...
<hr style="color:#292929;background-color:#292929;"/>
but the colour isn't changing to the HTML colour code I've declared. Why not?
Set border-color
.
the hr tag is a bit tricky vs other elements to style. Which things work and which ones don't is very browser dependent.
A cache of tricks (including coloration) is available here: http://webdesign.about.com/od/beginningcss/a/style_hr_tag.htm
Result:
<hr style="height: 5px; border: 0px solid #D6D6D6; border-top-width: 1px;" />
instead of: color:#292929;
use: border-color:#292929;
just use a p
tag with border, above unswers give no result for me...
<p style="border-bottom: 1px solid #D6D6D6; padding-bottom: 20px; margin-bottom: 20px"></p>
Try styling the border instead
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