xhtml - css positioning issue with float and margin -
this example on jsfiddle http://jsfiddle.net/yg6tx/5/
so question is, why red div(pagewrap
) not taking height of it's inner elements?
if specify float:left
, takes height, margin: 0 auto
no longer holds.
how can acheive both? (margin:0 auto
+ div needs take height ).
do need specify height
explicitly?
i'm newbie, question might seem simple.
try updated fiddle: http://jsfiddle.net/yg6tx/12/
as in original fiddle there no images due incorrect path of images in fiddle no images per requirement have changes layout.
as per requirement images @ position, red div taking entire height per elements inside , center margin:0 auto;
if lagging please comment can change per requirement.
Comments
Post a Comment