Home › Forums › CSS › little positioning advice! › Re: little positioning advice!
July 6, 2011 at 12:53 pm
#82953
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%;
}