A div height being completely random

March 23, 2007

I struggled for like 8 hours with this issue. I had three columns defined as divs on a page. At every 10th or so refresh, the footer div of the page jumped up and cut off the content of the column divs. And this only happened in IE7. Really weird.

Then a friend of mine suggested I add a clear div after the three columns. I did just that, adding an empty div referring to as css class named “clear” which used clear: both, margin and padding 0 everywhere. And it worked!

Thanks Lars!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: