Re: [CSS21] shortening inline-height has no apparent effect

On Mon, May 14, 2012 at 5:28 PM, Roger Baker <tstartme@hotmail.com> wrote:
> What you're saying makes sense. When I add line-height: 0.2; to the
> *paragraph*, the line box shortened as expected. Boris pointed me to the
> section in the spec talking about the "strut," which I *believe* is
> referring to the same concept you're talking about (line-height of the
> containing block). I'm finding the strut difficult to understand -- it
> appears to be a zero-width ("empty") em box, with font-size and line-height
> as set on the block-level container, that is automatically added to each
> child inline box. So it was the roughly 19px strut that was keeping the span
> box expanded beyond my expectation.

Yes, the "strut" is the same concept as "the line-height of the
containing block".  It's just another way to explain the same concept.

~TJ

Received on Monday, 14 May 2012 15:50:24 UTC