forum

Home / DeveloperSection / Forums / Only websafe colours for styling a <hr>?

Only websafe colours for styling a <hr>?

Anonymous User230709-May-2013
Hi Expert!

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?

Updated on 09-May-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By