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

Re: [Fwd: CSS and HR]

From: Steve Knoblock <knoblock@worldnet.att.net>
Date: Thu, 04 Dec 1997 12:19:07 -0500
Message-Id: <3.0.32.19971204114908.00f355d4@postoffice.worldnet.att.net>
To: www-style@w3.org
It's sometimes difficult to decide when to include HR elements in a
document---are they part of the style or part of the document? What happens
when the style changes and HR's are no longer needed? I wonder if it might
be a good idea to eliminate HR from HTML for the reason that it's too close
to presentational markup. There could be situations where you want a HR
where there is not any content.

I find

H1 { border-left: 1px [color here] solid; border-top: 1px [color here] solid }

pleasing. 

Yes, it does degrade plainly, but at least you have the heading's natural
(oops, default style sheet) whitespace to fall back on.

Steve

>Rather than trying to influence the HR element, you can add borders to
>elements with content. For example, if you would like a horizontal
>line before all H1 elements, you could say:

   _/ Steve Knoblock                      mailto:editor@city-gallery.com
   _/ City Gallery                            http://www.city-gallery.com/
   _/ Member NSA               http://www.3d-web.com/nsa/nsa.htm
Received on Thursday, 4 December 1997 12:26:25 GMT

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