Previous Message
Next Message

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

Sent by Lee Allen on 30 January 2002 19:07


I've been able to do this by specifying the color and background-color
attributes to the hr.  I'm pretty sure that the color works for IE and the
background-color for NN6.

    Lee Allen

----- Original Message -----
From: "Rieselbach, Erik" [EMAIL-REMOVED]>
To: [EMAIL-REMOVED]>; [EMAIL-REMOVED]>
Sent: Wednesday, January 30, 2002 6:08 PM
Subject: RE: [css-d] New Post - <hr> color?


> > > Is there a way to specify the color of a horizontal rule using CSS?
> >
> FWIW, I just create an empty <div class="rule"></div>, with .rule {
> border-bottom: [attributes]; }
>
> I don't know if this is considered kosher, but it works in IE5.5/Win,
> IE5/Mac, and NS6/both. (Opera 6/Win requires that you put something in the
> <div>. A &nbsp; will do.) You can also add a width attribute to the div as
> well if you don't want it to fill the containing block.
>
> Best,
>
> Erik
>
> Erik Rieselbach
>
> _______________________________________________
> css-discuss [EMAIL-REMOVED]]
> http://two.pairlist.net/mailman/listinfo/css-discuss
>
Previous Message
Next Message

Possibly related: