Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS not able to align div properly Re: not able to align div properly

#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;
}