- From: Jan Roland Eriksson <jrexon@newsguy.com>
- Date: Sun, 18 Feb 2001 11:50:01 +0100
- To: www-style@w3.org
On Sun, 18 Feb 2001 01:10:26 -0800 (Pacific Standard Time), Ian Hickson <ian@hixie.ch> wrote: >This group has a long history of shooting down proposed CSS rules for >styling the default look of <br> elements, so I figured here would be the >best place to ask: >What is wrong with the following? (you mean except from the fact that it has nothing to do with HR ? :) > br { > display: block; > } Well, there's nothing to apply a style to in the first place. Or are you thinking of a possibility to apply style to a control character? Can a control char really be thought of as occupying a character cell box? Browsers are supposed to interpret a BR as a command to move the next point of content rendering to a 'new line'. If the clear attribute is used in addition, the command needs to be given a further level of interpretation to find the next 'new line' where the value of the clear attribute is satisfied. But no where in this process I can se a stylable box to be generated. Btw, this "works" as something of a BR replacement in Win Moz 0.7 In your stylesheet... SPAN.sbr { white-space: pre; } SPAN.sbr:after { content: "\A"; } And in your markup... <P>Some text here<SPAN CLASS="sbr"></SPAN >Some more text that will appear on a next line of its own.</P> -- Jan Roland Eriksson <rex@css.nu> .. <URL:http://css.nu/>
Received on Sunday, 18 February 2001 05:52:49 UTC