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

RE: Alignment property proposal

From: Alan Gresley <alan1@azzurum.com>
Date: Wed, 26 Dec 2007 17:31:33 -0700
To: fantasai <fantasai.lists@inkedblade.net>
cc: Markus Mielke <mmielke@windows.microsoft.com>, www-style@w3.org
Message-ID: <20071226173133.34b83c2f3c9bef00757a2c62c0fb7450.2adbf0c888.wbe@email.secureserver.net>

fantasai wrote:

> Markus Mielke wrote:
> > *Problem:*
> > 
> > Allow centering of content within a containing block. Today, we only 
> > have text-align: center available that only applies to text and inline 
> > elements. This makes general centering of elements (like images) really 
> > difficult.
> > 
> > *Proposal: *
> > 
> > It would actually be better to create a new property ...
> 
> I've written this up for the wiki here:
>    http://csswg.inkedblade.net/ideas/centering
> There are a number of open issues. I'll paste the summary below, with my
> suggestions in **.
> 
>     - Whether the property affects the element's alignment within its parent
>       or its descendants' alignment within itself.
> 
>         **Proposed that it should affect the element.**


I believe it should only effect the element and should not be inherited. <center> is inherited and does create the need to overrule the alignment further down the document tree. I believe the alignment property proposal should be considered as an option along with float:center as I can see use cases for both.

Alan

http://css-class.com/
Received on Thursday, 27 December 2007 00:58:38 GMT

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