W3C home > Mailing lists > Public > www-style@w3.org > July 2008

Re: <br> and generated-content

From: Alan Gresley <alan@css-class.com>
Date: Wed, 02 Jul 2008 16:41:56 +1000
Message-ID: <486B2334.1050205@css-class.com>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: Brad Kemper <brkemper@comcast.net>, "www-style@w3.org" <www-style@w3.org>

Boris Zbarsky wrote:
> Brad Kemper wrote:
>> How about this:
>> br { height:0; display:block; }
> Does that do the right thing with inline borders?
> As far as that goes, does it do the right thing with clearance?
> What should happen if the <br> is floated?
> -Boris

Boris, why would an author bother floating a <br> element?

We use them because they act as a block element inflow by creating a 
line break or we use then to clear floats. I would go one step further with.

br { height:0; display:block; float:none; position:static; clear:both }

Received on Wednesday, 2 July 2008 06:43:02 GMT

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