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

Re: Alignment property proposal

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 26 Dec 2007 09:44:44 +0100
To: fantasai <fantasai.lists@inkedblade.net>, "Markus Mielke" <mmielke@windows.microsoft.com>, www-style@w3.org
Message-ID: <op.t3xo8us164w2qv@annevk-t60.oslo.opera.com>

On Wed, 26 Dec 2007 07:25:27 +0100, fantasai  
<fantasai.lists@inkedblade.net> 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 **.
>
> [...]

I think it would be good if one of these features exactly matches the  
behavior of <center>. (I thought that was the idea behind the proposal, at  
least for some proponents.) It seems that WebKit and Gecko have  
implemented that as text-align:-webkit-center and text-align:-moz-center  
respectively. Maybe we should introduce block-center as a value for  
text-align.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Wednesday, 26 December 2007 08:42:45 GMT

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