W3C home > Mailing lists > Public > www-style@w3.org > November 2012

Re: [css21] line-height, problem?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 26 Nov 2012 17:00:51 -0800
Message-ID: <CAAWBYDA+G2_i2fVByrBqS9K_vH4YfUubYTdqHN1gu+JieNXZ=g@mail.gmail.com>
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: Stephen Zilles <szilles@adobe.com>, "www-style@gtalbot.org" <www-style@gtalbot.org>, "www-style@w3.org" <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:03 GMT