Re: line breaks vs. line elements (comments on XHTML 2.0 text module)

On 11/7/02 11:16 AM, "Bertilo Wennergren" <bertilow@gmx.net> wrote:

> 
> Tantek Çelik:
> 
>> math { display:block }
> 
>> No need for a purely presentational <br/> in this example.
> 
> Well, actually the code example provided seems to suggest that a break
> is desired _before_ the math element, but _not after it_.

Actually, the original post makes it quite clear that display:block is what
is desired:

<blockquote 
cite="http://lists.w3.org/Archives/Public/www-html/2002Nov/0033.html">
 In writing content that
 has images, equations, or other figures embedded inside a paragraph
 <em>(where  said figure takes up the entire column width),</em>
</blockquote>

<em>phasis mine.

That implies there is no text on the same line as the <math> element, either
before or after it, thus there is effectively a break desired before _and_
after, thus display:block.

Oh, and if you preferred just a break before, you could do that as well:

 math:before { display:block }


Tantek

Received on Thursday, 7 November 2002 15:03:01 UTC