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: Sun, 22 Jul 2012 20:58:39 +0200
Message-ID: <20492.19807.365640.735561@gargle.gargle.HOWL>
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: www-style@w3.org
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 GMT

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