W3C home > Mailing lists > Public > www-style@w3.org > July 2007

RE: CSS manipulation of font positioning relative to baseline

From: Paul Nelson (ATC) <paulnel@winse.microsoft.com>
Date: Tue, 3 Jul 2007 17:19:04 -0700
Message-ID: <49C257E2C13F584790B2E302E021B6F913CE168E@winse-msg-01.segroup.winse.corp.microsoft.com>
To: "Gernot Hassenpflug" <gernot@coda.ocn.ne.jp>, <www-style@w3.org>

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 GMT

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