Re: 17.5.4 Horizontal alignment in a column

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 UTC