Forums

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

Home Forums CSS little positioning advice! Re: little positioning advice!

#82953
Akuseru
Participant

Yep, as wolfcry911 says. The container must have a width, margin if you want centered (margin: 0 auto;) and after the content should have a clear:both;







In the CSS:

.clearfix:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}

.clearfix {
display: inline-block;
}

html[xmlns] .clearfix {
display: block;
}

* html .clearfix {
height: 1%;
}