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

Re: [Fwd: CSS and HR]

From: Liam Quinn <liam@htmlhelp.com>
Date: Mon, 01 Dec 1997 14:44:15 -0500
Message-Id: <>
To: www-style@w3.org
Hash: SHA1

At 01:42 PM 01/12/97 -0500, Eric A. Meyer wrote:
>>Is there any way of replacing the NOSHADE attr of the HR element with 
>>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.

Not Netscape 4.04 for Win95.  It ignores the color property on HR.

>This is, I believe, also the correct behavior.

I disagree.  The color property indicates the color of text, but HR has no 
text.  Rather, an HR's color comes from its background; any value 
specified for color becomes the initial value for border-color, which is 
typically visible on an HR without the NOSHADE attribute.  (This was all 
discussed in the "Issue 2: Horizontal Rule properties" thread from July.  
See <http://lists.w3.org/Archives/Public/www-style/1997Jul/0136.html> for 
a good summary.)  All browsers that I know of ignore the background 
property on HR.

To answer the question, the following *should*, I believe, give the 
desired effect:

HR { background: black; border-style: none }

Of course it doesn't in any current browsers, though.

>I'm still looking for a way
>to declare something like:
>    HR {color: none;}  or
>    HR {color: default;}

A 'transparent' value for color might be useful.

Version: PGP for Personal Privacy 5.0
Charset: noconv


Liam Quinn
Web Design Group            Enhanced Designs, Web Site Development
http://www.htmlhelp.com/    http://enhanced-designs.com/
Received on Monday, 1 December 1997 14:43:10 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:45 UTC