Kathy Lin

Icon

Kathy Lin's personal website — so it's mainly about nothing.

Clearing CSS Floats

A common problem I’ve run into when dealing with float based CSS layouts is that the float’s container doesn’t stretch to “include” the other two floats. For instance, if a two column layout was done by putting two different div’s in a container the container div wouldn’t stretch to enclose the other two.

Here are some solutions to that problem that describe the problem itself in more detail. I decided to link them in case I forgot about them.

Category: Code

Tagged:

2 Responses

  1. Ryan says:

    Uh, I come here to read about your life and movies and I get STYLESHEETS? Wow. That is fascinating reading…

    We miss you in Reston. Tried calling you today, but we’re convinced (well, mostly Sam) that you have moved past us. It was nice knowing you. :)

Leave a Reply