Re: [Fwd: CSS and HR]

-----BEGIN PGP SIGNED MESSAGE-----
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 
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.

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.

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBNIMTjfP8EtNrypTwEQJSKwCg+yA1+m48Ihy4XoPFKb5pX0G8u74AoOv6
oXZPKvRTreyE5VtUmG2JVFlO
=mRtL
-----END PGP SIGNATURE-----

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