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

Re: <br> and generated-content

From: Brad Kemper <brkemper@comcast.net>
Date: Tue, 1 Jul 2008 19:41:06 -0700
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, "www-style@w3.org" <www-style@w3.org>
Message-Id: <8DACA910-B450-473A-B8D5-3F39FA8D84C4@comcast.net>
To: Boris Zbarsky <bzbarsky@MIT.EDU>


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 GMT

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