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

Alignment property proposal

From: Markus Mielke <mmielke@windows.microsoft.com>
Date: Tue, 6 Nov 2007 07:15:54 -0800
To: "www-style@w3.org" <www-style@w3.org>, "w3c-css-wg@w3.org" <w3c-css-wg@w3.org>
Message-ID: <0E4B701746DBB9418A6747852F8B9CA1024692B88D@NA-EXMSG-W602.wingroup.windeploy.ntdev.microsoft.com>
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 called:

' alignment'
Value:                                   left |center | right | inherit
Initial:                                    left
Applies to:                          All elements
Inherited:                            Yes
Percentages:                     N/A
Media:                                  visual
Computed value:             as specified

This property describes how the content boxes of the element are aligned. This property does not change the way text will align within an element. For text alignment see 'text-align'. Values have the following meaning:

left
                Aligned all element boxes to the left

center
                Center aligns all element boxes

right
                Aligns all element boxes to the right

Cheers
-- Markus
Received on Tuesday, 6 November 2007 15:16:10 GMT

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