W3C home > Mailing lists > Public > www-style@w3.org > January 2008

Re: [CSS21] Height of cell box should not be influenced by 'height'

From: White Lynx <whitelynx@operamail.com>
Date: Wed, 2 Jan 2008 17:12:53 +0400
To: "Bruno Fassino" <fassino@gmail.com>
Cc: www-style@w3.org
Message-Id: <20080102131253.7F5D37B902@ws5-10.us4.outblaze.com>


> > This changes meaning of table cell's vertical-align property. 
> > Currently it defines vertical alignment
> > of content withing table cell, you want it to change to something 
> > that defines vertical alignment
> > of cell within table row.
> 
> I'm not sure of this. The spec says:
>    "The 'vertical-align' property of each table cell determines its
> alignment within the row."
> What is not clear in the spec is how this alignment is obtained. From
> the diagram it appears that it is obtained adding/distributing where
> necessary extra top and bottom padding to the cells. This padding is
> necessary to make all cells to 'fill' the row.  But I haven't found
> this explicitly mentioned.

It is mentioned:
"Cell boxes that are smaller than the height of the row receive extra top or bottom padding"
So effectively it is not border box that is aligned with respect to parent, but rather content is aligned.
 
> You seem instead to assume that the vertical alignment is obtained
> somewhat adding top and bottom margin to a block (anonymous) container
> wrapping the cell content.

Well, not really. 

> > Note that presentationwise you actually remove important functionality.
> 
> I can't figure out what can be lost. The two ways of 'interpreting'
> things seem to me to give the same possibilities. But I'm probably
> missing something. An example would help.
> 

Well, here is table 
 http://xml-maiden.com/css21/table-cell-centering.xml
It has two stylesheets attached. Alternate stylesheet produces layout described by David, default is the case where cell is 'padded' to the height of row.

-- 
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze
Received on Wednesday, 2 January 2008 13:13:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:57 GMT