Jochen Kächelin wrote:
> http://gizmo.sp-online.de/test.html
...
> Is there a way to size a div automatic depending on the size of
> another div inside?
Several solutions available - depending on case.
In _your_ case you may add:
#main_container {overflow: hidden;}
...and get the expansion/containment you want in accordance with specs[1].
Test in IE5+/win, and add:
* html #main_container {overflow: visible;}
...if it doesn't come out right in those.
A simple:
#footer {clear: both;}
...will also work pretty well, but without the expansion/containment
rendering of the main_container.
regards
Georg
[1]http://www.w3.org/TR/CSS21/visuren.html#q15
--
http://www.gunlaug.no
______________________________________________________________________
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/