Re: Define <br> by CSS means?

21.07.2012, 10:44, "Lea Verou" <>:
> You can do it already, almost as easily, with something along the lines of:
> div>span:nth-child(3)::after {
> ššššššššcontent: '\A';
> ššššššššwhite-space: pre;
> }

Unfortunately this is buggy in WebKit when used in conjunction with floated siblings of parent: text from BR'ed block sometimes is not wrapped and, as result, overlaps floated block instead. So it's of limited applicability in real world (all the more so as it's inapplicable to inline-blocks).

Received on Saturday, 21 July 2012 23:11:48 UTC