W3C home > Mailing lists > Public > www-style@w3.org > December 1997

Re: [Fwd: CSS and HR]

From: Eric A. Meyer <eam3@po.cwru.edu>
Date: Mon, 1 Dec 1997 13:42:55 -0500
Message-Id: <v03102819b0a8b508dc5d@[129.22.138.152]>
To: www-style@w3.org
>Is there any way of replacing the NOSHADE attr of the HR element with CSS,
>in order to make a solid line?

   Yes.  Assuming you want the HR to be a black line, try:

     HR {color: black;}

   Every browser I've tested this in has rendered the HR as a black line.
This is, I believe, also the correct behavior.  I'm still looking for a way
to declare something like:

    HR {color: none;}  or
    HR {color: default;}

...so that the browser uses its default display for the HR, and doesn't
inherit any color from the BODY.  It may be that this is possible using
some of the values in Section 18 of the CSS2 specification, but I'm not
sure how.  Maybe someone here could answer that?

--
Eric A. Meyer  -  eam3@po.cwru.edu  -  http://www.cwru.edu/home/eam3.html
 Hypermedia Systems Manager
 Digital Media Services                http://www.cwru.edu/dms/dms.html
 Case Western Reserve University       http://www.cwru.edu/
Received on Monday, 1 December 1997 13:43:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:53 GMT