Gabe
Gabe

Reputation: 50493

Text Wrapping differences in IE7, IE8, and FF

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>

Upvotes: 2

Views: 1220

Answers (1)

Glennular
Glennular

Reputation: 18215

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

Upvotes: 1

Related Questions