This is my example on jsfiddle http://jsfiddle.net/YG6tx/5/
so my question is, why is the red div(pageWrap
) not taking the height of it's inner elements?
If I specify a float:left
, it takes the height, but the margin: 0 auto
no longer holds.
how can I acheive both? (margin:0 auto
+ the div needs to take the height ).
Do I need to specify the height
explicitly?
I'm a newbie, so this question might seem simple.