Reply To: Small page bug with 1.7beta
Try and avoid setting fixed height on elements, it’s not best practise unless there’s a specific reason and the consequences understood.
If the child elements are floated and the parent needs to enclose the floats – not the accepted behaviour of floats – then you must ‘clear’ or ‘contain’ your floats, in many circumstances this can be achieved by adding ‘overflow: hidden’ to the parent to force a new context.
The ‘Smashing Magazine’ article is, unusually, not a particularly good one and is just paraphrasing various classic but old articles; it’s section on float containment is NOT best practise- in fact it’s bad practice and should not be followed.