Word wrap for tables


/ Published in: HTML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <table style="table-layout: fixed; width:100%">
  2. <tr>
  3. <td style="width:10%; word-wrap:break-word; background:grey; display:block;">asdfasdfasdfasdfsadfasdfasfdasdfasdfasdf</td>
  4. <td style="width:90%; word-wrap:break-word; display:block;">TTTTTTTTTTTTT</td>
  5. </tr>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.