Re: Define <br> by CSS means?

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
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome

Received on Saturday, 21 July 2012 21:01:43 UTC