Having an <hr>
element with the color #ac8900 is what I require. When I apply the style in the traditional way
<hr color="#ac8900">
it functions perfectly. However, the expectation is to style everything using CSS, so I attempted the following in my stylesheet:
hr{
color: #ac8900;
background-color: #ac8900;
border-color: #ac8900;
height:2px;
border:none;
}
Unfortunately, it does not seem to work as expected. I can achieve desired results with other 'simpler' colors such as #000, #fff, etc., but not the one I specifically need. Is it only possible to color an <hr>
using CSS with web-safe colors?