[thelist] table widths (was: css - can you put comments in there?)
Hassan Schroeder
hassan at webtuitive.com
Mon May 14 23:04:12 CDT 2001
Deacon B responded to rudy:
>
> > some browsers will calculate the width of the table based on the window,
> > and disregard the div that the table is in
>
> Percentages in TABLE and TD tags are *spozed* to be based on the
> width of the window. The ones that *don't* do so are the broken ones.
> It says so in the HTML specification.
Uh, not really :-)
From: http://www.w3.org/TR/html4/struct/tables.html#adef-width-TABLE
width = length [CN]
This attribute specifies the desired width of the entire table and
is intended for visual user agents. When the value is a percentage
value, the value is relative to the user agent's available horizontal
space. In the absence of any width specification, table width is
determined by the user agent.
"available horizontal space" *could* - some would say should :-) -
be reasonably the width of the parent (immediate enclosing) block
element - <body>, <div>, <td>, whatever ...
As always, YMMV!
--
H*
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===(+1) 408-938-0567 === http://www.webtuitive.com
More information about the thelist
mailing list