Text Wrapping differences in IE7, IE8, and FF

Posted by gmcalab on Stack Overflow See other posts from Stack Overflow or by gmcalab
Published on 2010-04-07T19:20:31Z Indexed on 2010/04/07 19:23 UTC
Read the original article Hit count: 334

Filed under:
|

When I have this <table> below, the text wraps as needed in FF and IE8, but when I run this in compatibility mode or IE7 the text does not wrap and the width of the previous is basically ignored. Any way to get around this? Here is a simplified example.

<table>
   <tr>
      <td style="width:125px">
      hi
      </td>
      <td>bye</td>
   </tr>
   <tr>
      <td>
      line of text that will equal more than the above width
      </td>
     <td>bye</td>
   </tr>
</table>

© Stack Overflow or respective owner

Related posts about css

Related posts about cross-browser