W3C home > Mailing lists > Public > www-style@w3.org > January 2000

Re: line-height (was: inline h*ll)

From: L. David Baron <dbaron@fas.harvard.edu>
Date: Thu, 20 Jan 2000 20:39:56 -0500 (EST)
Message-Id: <200001210139.UAA20410@is02.fas.harvard.edu>
To: JOrendorff@ixl.com, www-style@w3.org
On Thu, 20 Jan 2000 18:52:14 -0500, JOrendorff@ixl.com wrote:
> Almost nothing should override line-height.  Superscripts and
> subscripts absolutely should *not* affect line spacing.  Very large
> type or images might.

If you only want them to change the line-height when necessary, you
could suggest:

sub, sup {
	line-height: normal; /* or perhaps 1.0 */

This is a reasonable thing to put in the user stylesheet of a browser
(if it isn't in the appendix of CSS2, it probably should be...).  Or,
if you want to be more extreme (and allow the potential for overlap):

sub, sup {
	line-height: 0;

> Unfortunately, the spec already defines a different algorithm.  It's
> okay, just ugly.  Perhaps there should be a property that lets the

I think it's a good thing that, by default, text doesn't overlap.
Would you want your subscripts on one line overlapping your
superscripts on the next?


L. David Baron    Sophomore, Harvard (Physics)    dbaron@fas.harvard.edu
Links, SatPix, CSS, etc.     <URL: http://www.fas.harvard.edu/~dbaron/ >
WSP CSS AC                      <URL: http://www.webstandards.org/css/ >
Received on Thursday, 20 January 2000 20:39:58 UTC

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