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

Re: Define <br> by CSS means?

From: Håkon Wium Lie <howcome@opera.com>
Date: Sat, 21 Jul 2012 23:00:55 +0200
Message-ID: <20491.6279.426301.883873@gargle.gargle.HOWL>
To: Simon Sapin <simon.sapin@kozea.fr>
Cc: Andrew Fedoniouk <news@terrainformatica.com>, www-style@w3.org
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 }

              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Saturday, 21 July 2012 21:01:43 UTC

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