Forum:How to force IE7 to wrap table cell contents to a fixed width

I doubt I was the first to run into this SNAFU and I doubt I will be the last so here is the problem and a solution for future reference.


 * Summary: IE7 does not wrap text in table cells the same way as FF3. To force text in a wiki table cell to wrap to the width of the table column you must surround the cell content with  ...  tags.

View this table under IE7 and then FF3.0
 * FF3.0 wraps the text to fit the specified max-width of a table column.
 * IE7 does not.

View this table under IE7 and then FF3.0
 * IE7 seems to have a memory for the width of the text as it was before the max-width parameter forces it to wrap. The pre-wrap width get's applied to that column.

View this table under IE7 and then FF3.0 - they should render the middle column in the same way.
 * IE7 needs to be told to use a specific column width AND max-width.

najevi 05:32, 26 November 2008 (UTC)