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

Inheritance of alignment revisited

From: Dennis Lundberg <dennis.lundberg@mdh.se>
Date: Tue, 30 Oct 2001 11:09:44 +0100
Message-Id: <>
To: www-html@w3.org
Hi there

I've done some more research if this area and have a few questions.

The specification says

"Whether the default value of the attribute is implicit (keyword 
"#IMPLIED"), in which case the default value must be supplied by the user 
agent (in some cases via inheritance from parent elements)"

Question 1:
Is it up to the user agent to choose when to provide a default value and 
when to inherit from parent elements?

Question 2:
It seems that IE6 inherits from a parent element when there is a parent 
that has an explicit alignment set. It uses align="left" when there is no 
element to inherit from. Is this a correct behaviour according to the spec?

Question 3:
This might be slightly off-topic. If I put this line in my stylesheet
   td { text-align : left; }
then all TD:s are left aligned, even the ones that have an align="right" 
attribute set. Is it the correct behaviour that CSS overrides 
align-attributes in the HTML-code?

Dennis Lundberg, Utvecklingsledare, IT-avdelningen
e-post: dennis.lundberg@mdh.se
tel: +46-(0)21-101516, fax: +46-(0)21-101636
Mälardalens högskola, Box 883, SE-72123 Västerås, SWEDEN
Received on Tuesday, 30 October 2001 05:09:56 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:58 UTC