width:auto; margin-left:auto; margin-right:auto

Question about modelling <TABLE> layout by CSS.

If you have <TABLE> without width set then its width computed value will be
set to
'intrinsic-table-max-width' or to 'container-width' whichever is smaller.

<TABLE border=1 align=center>
<TD>first cell</TD>
<TD>secons cell</TD>

My best guess that this behaviour could be described as

table { width:auto; margin-left:auto; margin-right:auto; }

But we have this limitation:
"If 'width' is set to 'auto', any other 'auto' values become '0' and 'width'
follows from the resulting equality."

My another guess: to use max-width:auto  but 'auto' is not allowed in

Any ideas of how to describe layouts like this?

Andrew Fedoniouk.

Received on Saturday, 29 May 2004 19:03:11 UTC