RE: CSS manipulation of font positioning relative to baseline

The 'vertical-align' property in CSS 2.1 will take care of your need.

The CSS 2.1 'vertical-align' is found at:
http://www.w3.org/TR/CSS21/visudet.html#line-height

Test cases: http://meyerweb.com/eric/css/tests/css2/sec10-08b.htm


Regards,

Paul

-----Original Message-----
From: www-style-request@w3.org [mailto:www-style-request@w3.org] On
Behalf Of Gernot Hassenpflug
Sent: Tuesday, July 03, 2007 10:19 PM
To: www-style@w3.org
Subject: CSS manipulation of font positioning relative to baseline


My first posting, I found this ML via Gmane, but did not a FAQ. Hope
this is the place to ask such questions:

   In LaTeX it is possible to typeset the text content of its
   enclosing "box" aligned to the top or bottom of the box. Is such
   control possible using CSS also, or is the space between an
   individual letter and the top and bottom of its "box" (visible if a
   border is drawn with padding equal to 0px) unmanageable (I.e., tied
   to the line-height)? If so, then I suppose this will be one of the
   next steps to take in the improvement of rendering engines?

Many thanks in advance,
     Gernot
-- 
Gernot Hassenpflug, NICT, Tokyo

Received on Wednesday, 4 July 2007 00:18:16 UTC