Re: <br> and generated-content

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 }


Alan

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