You could just use overflow: hidden; on the container, and you don’t need anything more fancy. No clearfix, no nothing.