Self Clearing Floats, Is It Really So Hard?
No matter how many times I say it and no matter how many times I show people, I still get this <div style="clear:both;">. This drives me nuts! If it is not an empty div with a style attribute then it is clearfix classes on the floated items and not on the parent as they should be.
Let me say it loud and let me say it clear empty divs are meaningless and clearfix classes go on the parent element! Okay rant over, now if you are not sure how to self clear floats then here are a few easy ways to do it.
Continue ReadingPosted by : Aaron Witherow, in CSS |