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

Re: position: center

From: David Woolley <david@djwhome.demon.co.uk>
Date: Tue, 27 Jan 2004 06:28:05 +0000 (GMT)
Message-Id: <200401270628.i0R6S5002050@djwhome.demon.co.uk>
To: www-style@w3.org

>    There already exists a way to center content horizontally using the
> text-align property and there needs to be a similar property that works

This centre justifies from that centres.  Horizontal centring is
achieved with automatic margins and a defined width.

> vertically, which accepts the four values: top, middle (or center?),
> bottom and justify.

The analogous behaviour to text align would be to align the text in
each rendered line in the vertical centre of that line, not to align
a whole block.

Aligning a block vertically requires a fixed height, removing a degree
of freedom, and therefore possibly forcing overflow behaviour when the
user overrides the font size.  Actually centering frustrates
incremental rendering or requires text to moved as it is rendered.
Received on Tuesday, 27 January 2004 04:42:59 GMT

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