All blog posts tagged with css

Clearing floated elements without extra markup

January 16, 2008

Clearing floating elements is pretty commonly handled by a a div or br tag with clear: both.

Recently I ran into a problem with this; the layout I was working with was using floats for the sidebar and part of the main content had floated list of images. Using the clear both trick caused it to clear …

Read more

Displaying 1 post

Blog Archives

Recent Comments