W3C home > Mailing lists > Public > www-style@w3.org > August 1999

Re: padded inline boxes and line boxes

From: David Perrell <davidp@earthlink.net>
Date: Fri, 27 Aug 1999 13:33:29 -0700
Message-ID: <00bb01bef0cb$6f29f2c0$15a8a8c0@DPER>
To: "Style" <www-style@w3.org>
ament wrote:

> "vertical padding, border and margin are not supposed to
influence the line
> box."
> Where do you see that in the text?

It's in the CSS2 Recommendation, but limited reading can give
a different impression.

From '8.4.3 Inline formatting context':

    "A line box is always tall enough for all of the boxes it

But the last line in the section reads:

    "Note that with a small line height, the padding and
borders around text in different lines may overlap."

From '9.6 Line height calculations: the 'line-height' and
'vertical-align' properties':

    "Note that top and bottom margins, borders, and padding
specified for inline elements do not enter into the
calculation of line box heights."

It might be less confusing if the first example sentence were
to read: "A line box is at least as tall as the tallest
line-height (inline elements) or height (replaced elements) of
any elements contained in the box." And second example
sentence might be more specifically-phrased: "Note that if the
sum of the line-height, padding and borders of an inline
element exceeds the height of a line box, the padding and
borders above and below text in different lines may overlap."

David Perrell
Received on Friday, 27 August 1999 16:34:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:51 UTC