Re: <br> and generated-content

On Jul 1, 2008, at 9:51 AM, Boris Zbarsky wrote:

> I'll be completely honest: what makes the most sense to me in some  
> ways is to make <br> not be a replaced element (in whatever spec),  
> have
>
>  br { content: "\A"; white-space: pre; }

How about this:

br { height:0; display:block; }

It breaks lines by creating a zero-height block in the middle of  
inline content. Like as with most browsers, two of them has the same  
effect as one, unless there is some non-collapsing character in- 
between, such as a &nobr; 

Received on Wednesday, 2 July 2008 02:41:52 UTC