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

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Notify me of followup comments via e-mail. You can also subscribe without commenting.