W3C home > Mailing lists > Public > www-html@w3.org > October 2001

Inheritance of alignment for TD

From: Dennis Lundberg <dennis.lundberg@mdh.se>
Date: Fri, 19 Oct 2001 08:45:41 +0200
Message-Id: <4.3.2.7.1.20011019082914.02575460@mdh.se>
To: www-html@w3.org
I posted this a week ago, but nobody answered it, so I'll try to explain 
myself a bit clearer...

If I have understood the specification correctly, the alignment of a TD 
should be (in order):
1. Any ALIGN attribute specified in the TD tag
2. Any ALIGN attribute specified in the surrounding TR tag
3. Any ALIGN attribute specified in the surrounding TABLE tag

Most importantly TD should *not* inherit the ALIGN attribute from any tag 
outside it's own TABLE. Instead if none of the above applies it should use 
the default alignment which is LEFT.

Can anyone verify that this is correct?

In the examples found at the adress below, the red table-cells should be 
aligned to the left. Is that correct?
http://www.mdh.se/ie6.html


The specification I refer to is:
http://www.w3.org/TR/html401/struct/tables.html#alignment
under the heading "Inheritance of alignment specifications"


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Dennis Lundberg, Head of Development, IT-department
e-mail: dennis.lundberg@mdh.se
Mälardalens University, PO Box 883, SE-72123 Västerås, SWEDEN 
Received on Friday, 19 October 2001 02:45:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:49 GMT