W3C home > Mailing lists > Public > www-style@w3.org > September 1996

Re: New CSS1 draft available

From: David Perrell <davidp@earthlink.net>
Date: Sun, 22 Sep 1996 00:32:02 -0700
Message-Id: <199609221959.MAA26045@austria.it.earthlink.net>
To: <lee@sq.com>
Cc: <www-style@w3.org>
lee@sq.com wrote:
> > In addition, (3) line-height is what is used in the short-hand
> > notation:
> > 
> >     font: 12pt/14pt Helvetica
> Note that line height interacts with drop caps.

Note that with the current interpretation of line-height, the effective
line-height of a single line of text is always equal to the font-size.
In order to get a typical drop cap, where the baseline of the cap lines
up with the baseline of one of the lines in the main element and the
following line doesn't wrap, a negative bottom margin is needed
on the floated 'first-letter'.

  \ /\ /ithout a negative margin-
   V  V bottom the text will wrap
        until it clears the entire
  line height, which forces too much
  space below the initial cap.

  \ /\ /ith a negative margin-bottom
   V  V the margin can be adjusted to
  allow the text to clear immediately
  below the baseline of the initial cap.

Unfortunately, a negative margin-bottom on a floated element isn't
possible with MSIE's current implementation of CSS1. Support for
margins and float is either missing or inconsistent with the CSS1 spec.

David Perrell 
Received on Sunday, 22 September 1996 16:18:08 UTC

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