W3C home > Mailing lists > Public > www-style@w3.org > July 2001

Re: Table height/width properties

From: Glen Harman <gharman@erols.com>
Date: Mon, 2 Jul 2001 19:03:49 -0400
Message-ID: <002401c1034b$42183dc0$31c5a4d8@anaconda>
To: <www-style@w3.org>
L. David Baron wrote...
> On Mon, 2 Jul 2001, Glen Harman wrote:
> > Well, if width specifies content width I presume that refers to content
> > edge.  So if it is calculated directly against parent width values, I take
> > that to mean it is relative to the parent's content edge and thus the
> > parent's content edge equates with the containing block established
> > by said parent.  But the definition of padding edge, found in section
> >
> >     http://www.w3.org/TR/REC-CSS2/box.html#box-dimensions
> >
> > says that it is padding-edge which defines the containing block.
> This was an error:
> http://www.w3.org/Style/css2-updates/REC-CSS2-19980512-errata.html#x60

Doh... errata.  Is there an amended copy of the spec being published?

> >     respect to the height of the generated box's containing block. If the
> >     height of the containing block is not specified explicitly (i.e., it
> >     depends on content height), the value is interpreted like 'auto'.
> >
> > maybe it is that last sentence which is driving this?  In my first test
> > ( http://www.gharman.com/tablesize1.html ) outer table, outer table td,
> > inner table, and inner table td all have height:100% properties.  But
> > if percentage entries qualify as "not specified explicitly" and my
> > properties are being ignored and treated as auto, I guess that
> > might account for the "shrinking" I'm seeing.
> If you specify 'height: 100%' on everything up through BODY and HTML
> then it will be explicitly specified (at least under some
> interpretations of the spec).

Uhm... click click... yup, how about that.  One of the things I'm trying to
understand is the level of support for what I would consider to be a
common/logical practice... namely, running with default HTML and
BODY properties, and wanting the main table to fill the default content
area.  IE wanting it to have the default body padding (I guess that is
what it would be) and wanting no scroll bars.  I guess this height
property issue kinda prevents that.  I've tried a number of other things,
like setting BODY to 100% and adding appropriate BODY padding,
mucking with the main table's margins, etc... but I always get scrollbars.
If spec provides a way to do this type of thing, I'd be interested to know
what is supposed to work.
Received on Monday, 2 July 2001 19:03:50 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:58 UTC