I have a <hr> and I need it to have the color (hex value) #ac8900. If I style it the old fashioned way
<hr color="#ac8900">
it works fine. But I'm expected to style everything with CSS, so I tried this in my style sheet:
hr{
color: #ac8900;
background-color: #ac8900;
border-color: #ac8900;
height:2px;
border:none;
}
But it doesn't work. Other, more 'basic' color work such as #000, #fff etc but not the one I need. Can you only colors a <hr> with css using web safe colors?
AVADHESH PATEL
09-May-2013I hope it helpful to you