Re: [css21] line-height, problem?

On Mon, Nov 26, 2012 at 4:35 PM, Andrew Fedoniouk
<news@terrainformatica.com> wrote:
> Consider these two properties:
>
> 'min-height' specifies the minimal height [of an element].
> 'line-height' specifies the minimal height of line boxes.
>
> Seems like both define same concept - they constrain the height to a
> certain minimal value that
> computed value of height may use.
>
> By defining min-height you *cannot* make elements smaller, only larger.
> But by defining line-height you can make line-box smaller than its content.

I'm confused.  You just stated completely different things.

The line box never grows smaller than the largest line-height of the
box fragments on the line.  That's the same sense of "minimal" that
min-height gives to a box.

~TJ

Received on Tuesday, 27 November 2012 01:01:39 UTC