Search

Long / Big word aligning within same width - Word Breaking example

Exported from Notepad++
<html> <head> <style type='text/css'> table { table-layout:fixed; } .middles { text-align:left; width:30%/* expand this column to as large as it can get within table? */} .wraps { word-wrap:break-word; /* use up entire cell this div is contained in? */ } </style> </head> <body> <table width="100%" border="2"> <tr> <th class=left width=100>L-1 </th> <th width=100>L-2 </th> <th width=100>M </th> <th width=100>R-1 </th> <th width=100>R-2 </th> </tr> <tr> <td class=left>argle </td> <td >bargle </td> <td class="middles wraps">wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww </td> <td >glyp </td> <td >glof </td> </tr> </table> </body> </html>
Output:

No comments:

Post a Comment