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

Re: Define <br> by CSS means?

From: Marat Tanalin | tanalin.com <mtanalin@yandex.ru>
Date: Sun, 22 Jul 2012 03:11:06 +0400
To: Lea Verou <leaverou@gmail.com>
Cc: Andrew Fedoniouk <news@terrainformatica.com>,"www-style@w3.org" <www-style@w3.org>
Message-Id: <1920351342912266@web12h.yandex.ru>
21.07.2012, 10:44, "Lea Verou" <leaverou@gmail.com>:
> 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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:19 UTC