W3C home > Mailing lists > Public > www-style@w3.org > February 2001

Re: Style rules to emulate HR

From: Bert Bos <bert@w3.org>
Date: Wed, 28 Feb 2001 16:50:37 -0500 (EST)
To: www-style@w3.org
Message-ID: <15005.29051.657636.907441@meta.inria.fr>
fantasai writes:
> Bert Bos wrote:
> > So how about:
> > 
> >     br              {content: "\A"; display: inline}
> > 
> >     br[clear]       {content: ""; display: block}
> >     br[clear=left]  {clear: left}
> >     br[clear=right] {clear: right}
> >     br[clear=all]   {clear: both}
> 
> br, br[clear=none] {content: "\A"; display: inline} /*after br[clear]*/

Yes, I forgot clear=none...

> Would the following markup present a problem, or do you want to
> ignore the possibility?
> 
> <p>content<br>
> <br clear="all">
> <br clear="all">
> <br clear="all">
> end</p>

Yes, I thought about that. It would indeed present a problem, but I
imagined that this is not very common (although you do find the
strangest things in HTML documents...)

Of course, people should just not use BR at all, but that is a
different discussion.



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos/                              W3C/INRIA
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Wednesday, 28 February 2001 17:57:33 GMT

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