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

Re: [CSS3 box] Proposal: content-align

From: David Woolley <david@djwhome.demon.co.uk>
Date: Sat, 16 Sep 2006 00:39:00 +0100 (BST)
Message-Id: <200609152339.k8FNd0e02453@djwhome.demon.co.uk>
To: www-style@w3.org

> text in an inner box with a specified width and setting its
> margin-left and margin-right to "auto". Left and right alignment
 
> There is no such thing for vertical aligment. Perhaps, given a
> container with a specified height, the same rules could be introduced
> for margin-top and margin-bottom?

Actually, there is:  you need to absolutely position the inner box with
top, bottom, left and right 0 and all margins auto, after making the outer
box a positioning context.  However, the problem that I thought was being
raised here was the case when you didn't know the height of the inner box.
Received on Friday, 15 September 2006 23:39:07 GMT

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