Previous Message
Next Message

Re: [css-d] New Post - <hr> color?

Sent by Craig Saila on 30 January 2002 11:11


Robin Hall wrote:

> Is there a way to specify the color of a horizontal rule using CSS?
> 
> hr {color : red;}
> 
> doesn't seem to work...
> 
> I have managed to add colored borders (border-top and border-bottom) but the
> line itself remains stubbonly grey!


Try adding "background: red;" as in

HR { background-color: red; color: red; }


(Gecko-based browser use background-color, IE uses color)

-- 
Cheers,

Craig Saila
------------------------------------------
[EMAIL-REMOVED]  :  http://www.saila.com/
------------------------------------------


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Previous Message
Next Message

Possibly related: