Re: Define <br> by CSS means?

Also sprach Andrew Fedoniouk:

 > > 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.

Depends on your definition of reality; Prince is shipping with the above code. 

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

Neither Prince nor Opera break any lines in the example.

Ignoring implementation for a moment, why shouldn't the above
defitions of br work with inline-blocks?

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome

Received on Sunday, 22 July 2012 18:59:12 UTC