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>
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.

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:

                Aligned all element boxes to the left

                Center aligns all element boxes

                Aligns all element boxes to the right

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

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:23 UTC