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

line height vs. margins

From: Sho Kuwamoto <skuwamoto@macromedia.com>
Date: Fri, 1 Aug 1997 17:45:15 -0700
Message-Id: <v03007806b00831872073@[]>
To: www-style@w3.org
Is there any consensus on where the extra space from line-height
should be rendered?

Let's say I have some text which paginates as follows.
Let x be the space between paragraphs, and y be the space
between lines.

previous paragraph
                    <- x
line1 line1 line1 /- y
line2 line2 line2
                    <- x
next paragraph

Now, let's suppose we set the line-height of the middle paragraph
to be 10 pixels more than what the auto line-height value was.

previous paragraph

                    <- x'
line1 line1 line1
                    <- y'
line2 line2 line2

                    <- x''
next paragraph

We can safely assume that y' = y + 10px, but what about x' and x''?
Netscape seems to stick all the whitespace above the text, so that
x' = x+10px, and x'' = x.  Microsoft IE seems to do something
different, but I can't tell what it is. Perhaps x'=x+5px and x"=x+5px?

What *should* it do? On the one hand, we could leave it up to
the UA, but if the point of CSS is to allow the web author to
specify layout accurately, it seems that this would be a good
thing to nail down.


Received on Friday, 1 August 1997 20:34:55 UTC

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