Avonelle's Tech Blog

Go Back

Default <td> width: 0 is my friend

Ugh. Browser differences are a real pain.

Today’s irritation comes from IE 7 which has resizing my table column widths despite providing explicit ones.

This tidbit provided a solution. I added a default style for the td tag with a width of zero. Now everything is hunky dory.

This may not seem like a big deal, but I had single character columns that were taking up more space that columns with lots of text, which just created a lot of unattractive whitespace.

Posted by Avonelle on Thursday, February 26, 2009.

Facebook Twitter