W3C home > Mailing lists > Public > www-style@w3.org > March 2015

Re: [css-tables][css2.1] What should the measurement of the table be?

From: Gérard Talbot <www-style@gtalbot.org>
Date: Sun, 08 Mar 2015 03:23:35 -0400
To: Greg Whitworth <gwhit@microsoft.com>
Cc: www-style list <www-style@w3.org>
Message-ID: <bb103c8ed23992efd0d27b2b01c21438@gtalbot.org>
Le 2015-03-08 00:19, Greg Whitworth a écrit :

Greg, I have not examined your tests. But this statement got my 

> Personally, I think that any time you use CSS tables it should have
> the same end result as using actual tables

CSS table cells do not have a default 1px padding.
<td> have a default 1px padding.

Rules of user agent style sheets are accessible, viewable in Chrome, 
Firefox and Presto.


The width of the table is the distance from the left inner padding edge 
to the right inner padding edge (including the border spacing but 
excluding padding and border).

However, in HTML and XHTML1, the width of the <table> element is the 
distance from the left border edge to the right border edge.
17.6.1 The separated borders model

The "However" clearly suggests that the previous sentence was referring 
to a CSS table.

And the "excluding padding and border" refers to table padding and table 

This part of spec is difficult to read, I would say.



Received on Sunday, 8 March 2015 07:24:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:52 UTC