Home › Forums › CSS › not able to align div properly › Re: not able to align div properly
July 2, 2012 at 6:23 am
#105200
SgtLegend
Member
Whenever you float elements you need to clear any children that follow otherwise the element stack starts to mess up like in your example, see the below code which will fix your issue.
#content {
background: green;
clear: both;
position: relative;
width: 960px;
}