I have two columns in a center column. (They are all div tags.) When I set the inner divs to float:left
, the outer div does not wrap around the inner divs.
Why, and how do I fix that?
I have two columns in a center column. (They are all div tags.) When I set the inner divs to float:left
, the outer div does not wrap around the inner divs.
Why, and how do I fix that?
Add position: relative
to your outer div. (or position:absolute
but you probably don't want absolute positioning)
set overflow: auto
on the outer div.
http://stackoverflow.com/questions/3956645/why-does-setting-overflow-alter-layout-of-child-elements