Re: Define <br> by CSS means?

Simon Sapin wrote:

 > >   > Check this:http://terrainformatica.com/w3/css-br.htm
 > >
 > > Neither Prince nor Opera break any lines in the example.
 > 
 > This is probably because this also applies to the <br> element:
 > 
 > .some-span > * { display: inline-block }
 > 
 > This should fix it:
 > 
 > .some-span > div { display: inline-block }

Yes. So it seems that <br> works, and its behavior can be described in
CSS. What doesn't work is overloading inline-blocks with line-breaking
behavior?

-h&kon
              H�kon Wium Lie                          CTO ��e��
[email protected]                  http://people.opera.com/howcome

Received on Sunday, 22 July 2012 21:09:37 UTC

OSZAR »