On 23 Aug 2006, at 18:27, Peter-Paul Koch wrote:

>> "Width" is one of the presentational attributes.
>
> But my code example doesn't use a width attribute, just a common CSS
> width declaration.
>

Yes, but section 6.4 of CSS 2.1 specifies the way in which a CSS- 
capable user agent converts presentational attributes like "width"  
into the equivalent CSS rules for the purpose of assigning values to  
properties. In other words (and I don't know if this is how it's  
actually implemented, but it's what the spec says), a "width"  
attribute on a "COL" element is equivalent to a CSS declaration of  
"width".

Therefore:

<col span="2" width="10%">

is equivalent (leaving out considerations of precedence) to

<col span="2" style="width:10%;">

As the HTML 4 spec states that the width attribute applies to each  
individual column spanned by the "COL" element, it follows that a CSS  
width declaration must also apply to each individual column, rather  
than to the group of columns, otherwise the two cases above would not  
be equivalent.

HTH,

Nick.
-- 
Nick Fitzsimons
http://www.nickfitz.co.uk/



______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to