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

Re: 17.5.4 Horizontal alignment in a column

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 11 Dec 2007 18:34:34 -0500
Message-ID: <475F1E8A.3080304@inkedblade.net>
To: Garrett Smith <dhtmlkitchen@gmail.com>
CC: WWW Style <www-style@w3.org>

Garrett Smith wrote:
> 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.

Thanks for pointing that out. Recorded as issue #20.
   http://csswg.inkedblade.net/spec/css2.1#issue-20

~fantasai
Received on Tuesday, 11 December 2007 23:35:08 GMT

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