Previous Message
Next Message

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

Sent by Timothy J. Luoma on 30 January 2002 23:11


On Wed, 30 Jan 2002, Rieselbach, Erik wrote:

> > > 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.

This works in all CSS browsers (including Opera) and doesn't require an
image file (I surf w/ images off all the time and really hate when layout
is thrown off due to images.

I use the above myself (and always throw a &nbsp; in an otherwise empty
element)

Seems like a good way to go to me


-- 
Timothy J. Luoma ~ http://www.tntluoma.com ~ [EMAIL-REMOVED]
Amateur Webdesigner Extraordinaire
Favorite pasttime: Finding and Reporting obscure typos in webpages
"Good web designers are frequently validated"
Replies to the list preferred unless I've wandered too far OT :-)
Previous Message
Next Message

Message thread:

Possibly related: