Fixing the width of HTML table columns in IE

I had a frustrating time today trying to understand why IE was ignoring a fixed width style on a TD. IE was happily ignoring it and resizing the column to the content. It turns out I needed to apply this little CSS attribute that I thought I would note down since I will instantly forget it;

{table-layout:fixed;}

Advertisements
This entry was posted in Html and tagged , , . Bookmark the permalink.

One Response to Fixing the width of HTML table columns in IE

  1. zan says:

    Thanks! This fixed my problem immediately. A quick note to others who come along, this worked when applied to the table, not td.

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