Robin Whitman wrote:
This page (please see URL below) is driving me up the wall and onto
the ceiling:
{wish I could do a stunt like that :-) }
http://www.youthtopia.org/page2_001youth.html
I can't understand why my 2 columns of content are not INSIDE the
grey "main" DIV, but instead they are below it.
You've got two floats inside 'main', and nothing below them. Floats are
not contained by default in a container with basic styles only.
I do want them in there so I can apply properties to the entire main
div.
Add:
#main {float: left; width: 732px;}
It'll work because a float _will_ contain other floats by default. The
width is necessary to stabilize the rendering across browser-land.
Another solution is to clear below the two floats, inside 'main'.
For a more complete picture:
<http://www.gunlaug.no/contents/wd_example_01_05.html>
regards
Georg
--
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/