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

Re: Define <br> by CSS means?

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Sat, 21 Jul 2012 16:55:41 -0700
Message-ID: <CALRQH79pmKxUbHX0i_NayP=xDt6i0Hw7qz6r1VtL2_vrDu6AFw@mail.gmail.com>
To: Håkon Wium Lie <howcome@opera.com>
Cc: Simon Sapin <simon.sapin@kozea.fr>, www-style@w3.org
On Sat, Jul 21, 2012 at 2:00 PM, Håkon Wium Lie <howcome@opera.com> wrote:
> Also sprach Simon Sapin:
>
>  > You can do as Lea said to have something behave like <br> in CSS. In
>  > fact that’s how <br> is implemented in some UAs.
>
> Indeed, from /usr/lib/prince/style/xhtml.css:
>
>   br {
>     content: '\A';
>     white-space: pre;
>     background: none
>   }
>
> And from http://www.w3.org/TR/CSS21/sample.html:
>
>   br:before       { content: "\A"; white-space: pre-line }
>

It's a pity but all this is simply just a good wish - far from reality.

Check this: http://terrainformatica.com/w3/css-br.htm


-- 
Andrew Fedoniouk.

http://terrainformatica.com
Received on Saturday, 21 July 2012 23:56:03 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:57 GMT