W3C home > Mailing lists > Public > www-style@w3.org > October 2000

simulating <br>

From: fantasai <fantasai@escape.com>
Date: Tue, 24 Oct 2000 16:54:17 -0400
Message-ID: <39F5F6F9.CC817101@escape.com>
To: www-style@w3.org
On 2000-02-26 at 16:49:05 -0500 (EST), Matthew Brealey wrote in "Re: Setting
the height of a BR element using CSS" <E12Op6k-0003Zp-00@area51.site5.com>:

 | David Baron wrote:
 | > although it is unlikely to do so in any current browsers.  One interesting
 | > question is whether it should influence the line box only on the line ended
 | > by the BR element, or on the next line as well.
 | 
 | Yes. I have pointed out the problems of treating <br> as a normal
 | element (namely confusing distortion of line box heights, disruption of
 | line box height calculations, the issue of whether it should be treated
 | as BR:before {content: \A} or BR:after, which lead to different
 | results, the artificial nature of trying to pigeonhole it into a CSS
 | concept, the fact that there is no need to allow the full range of CSS
 | properties on it, and above all the overwhelming sense that a forced
 | line break should not be any different from the natural one, etc.).

This seems to work:
<p>This is the beginning of a paragraph which has
<span style="display: block; height: 0"></span>
a break and finishes off after the interruption.</p>

I must be missing some fundamental flaw. It's too easy.
I think I came up with one six months ago, but I don't recall what it was...
Anyone?
Received on Tuesday, 24 October 2000 16:53:54 GMT

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