Categories
Technology

IE7 Table Width

I had a problem with IE7 not respecting TD width. For example, I would do something like this:

<td style="width: 20px"></td>

But IE7 would completely ignore the width in favor of showing even columns.

This was extremely frustrating, and it had nothing to do with my CSS because it worked fine in Firefox.

Finally I found this property

table-layout: fixed;

Which made Internet Explorer behave as it should. I can finally specify the width of my table columns. I hope it helps.