Ian Skinner schrieb:
What I want
is the div to stretch to the same width as the table, without
defining the table width or including the div in the table or I
suppose enclosing the table in the div.
My goal is to have the div as wide as the table. I would presume
that the "body" is wide as the table in order to encompass it, so if
one declared the div to be 100%; it would be as wide as body and thus
the table. But that does not work, at least not in IE6.
The problem in IE is the expand to fit does not inform the children
about the resulting width.
.wrapper {width: 500px; background: yellow;border:1px solid
black;padding:1em 0;}
.default {width:100%; background: green;}
.wide {width:750px; background: red;}
<div class="wrapper">
<div class="default">Some top of page stuff</div>
<div class="wide">Some wide stuff</div>
<div class="default">Some bottom of page stuff</div>
</div>
In IE, the .wide stuff let the .wrapper expand from 500px to 750px, that
is not CSS, but MS.
Now, .default does not calculate its 100% width with respect to the
resulting width of the wrapper, but to its original width.
Sorry, I fear the expand-to-fit does not do what you want.
Ingo
--
http://www.satzansatz.de/css.html
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/