4 thoughts on “Clearing CSS Floats Without Markup Leave a comment

  1. Pingback: Clearing CSS Floats Without Markup
  2. Ben, this looks very cool and I’m all in favor of using less code and saving time. Can you show a brief example of what the html would look like. Do you add .clear to a content element?

    Now you can see I don’t understand…


    1. Hi Robert – yeah, just add clear as the css class for the container of the floated items. I’ve added a small sample to the code above 🙂

Leave a Reply

Your email address will not be published.