Main Content

Don’t float in your tables.

Well I learned today that you shouldn’t float in your tables. I had a site that looked great and designed with CSS. However, Internet Explorer didn’t read the CSS correctly so I had to go with tables too. Unfortunately I forgot to take out a few floats and, very randomly, the site wouldn’t look correctly in some browsers. It was so random that when you hit refresh it would look ok, hit refresh again and it’d be broken. After some trouble shooting I found out that I had left the float tags in the CSS class that was now applied to the TDs in the code. Once removed, everything looked great again. So remember, don’t float in your tables.

Leave a Reply