W3C home > Mailing lists > Public > www-style@w3.org > February 1998

5.10.2 The :first-letter pseudo-element

From: Frank Boumphrey <bckman@ix.netcom.com>
Date: Mon, 16 Feb 1998 01:54:36 -0800
To: "'Style Sheet mailing list'" <www-style@w3.org>
Message-ID: <01bd3ac0$e4066c80$bbaddccf@uspppBckman>
5.10.2 The :first-letter pseudo-element


[Define better alignment of drop caps? BB]
   P:first-letter { font-size: 200%; font-style: italic; font-weight: bold;
float: left }

Surely the best way to define a drop cap is to state how many lines of text
it should span. This prevents problems with getting the font size right. In
fact the text-top of the drop cap should line up with the text top of the
first line, and the baseline of the drop cap should line up with the base
line of the last line of text opposite to it.
If a different font is used for the drop cap, which is common, just stating
a line value would solve a lot of problems.
    It would also make life easier for the user-agent which would calculate
the required height for the Drop cap and then fit the drop cap to it.
    The only possible problem would arise with those fonts with a lot of
internal leading below the descender, when this may affect the placement of
the first line NOT opposite the drop cap.
    It would also be nice to be able to move this drop-cap to the left, but
I suppose this could be done with the line-indent property.
    Of course at the moment this is academic, as the major players provide
no support at all for the text pseudo properties.
Received on Monday, 16 February 1998 02:03:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:54 GMT