Re: Table align = center

Daniel.Mann@smed.com wrote:
> 
> The following was cut from the documentation on Table.
> It includes align=center   which will center the table as a unit [not each
> individual line as in text-align].
> 
> It says that this feature is deprecated.
> 
> Could you please tell me what the newer approach is?
> Is there a Style Sheet property & value that can accomplish the same thing?

For inline tables, use 'text-align' [1]. For blocks, use margin
properties
to center the block (for example { margin-left: 10%; margin-right: 10% }
will give you 10% of available width on either side of the block). 

[1] http://www.w3.org/TR/REC-CSS2/tables.html#column-alignment
 
> Thanking you in advance.

Hope this helps,

 - Ian
 
> Daniel Mann
> 
> align = left|center|right [CI]
> Deprecated. This attribute specifies the position of the table with respect
>  to the document. Permitted values:
> left: The table is to the left of the document.
> center: The table is to the center of the document.
> right: The table is to the right of the document.

-- 
Ian Jacobs (jacobs@w3.org)   http://www.w3.org/People/Jacobs
Tel/Fax:                     +1 212 684-1814
Cell:                        +1 917 450-8783

Received on Friday, 19 November 1999 10:16:03 UTC