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

17.5.4 Horizontal alignment in a column

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Tue, 4 Dec 2007 20:41:49 -0800
Message-ID: <c9e12660712042041n4fcc24e4i6b9ca044f235e248@mail.gmail.com>
To: "WWW Style" <www-style@w3.org>

http://www.w3.org/TR/CSS21/tables.html#column-alignment

17.5.4 Horizontal alignment in a column

The horizontal alignment of a cell's content within a cell box is
specified with the 'text-align' property.

This seems wrong. I think it would make sense to treat the block level element.

IE7 seems to be the only browser that respects this, though only
partially; IE7 only does when the block-level content has margin: 0.

When the margin-left or margin-right is auto, IE7 does what all the
other browsers do: position the content as it would if the TD were a
block level element.

Testcase:
http://www.dhtmlkitchen.com/test/bug/table-alignment.html

The black bar shold be in the middle of the TD, according to this spec rule.

-- 
Monkey, so they say, is the root of all people today.
Received on Wednesday, 5 December 2007 04:41:58 GMT

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