An easier way to do this is to add this to the HTML
<td class="first"> <div>Don ovonMrLongNameIsMe!!!</div> </td>
and this is for CSS
div { overflow:auto; } td { border: 1px solid rgb(0,0,0); min-width: 100px; max-width: 100px; }
Working example:
div { overflow:auto; } td { border: 1px solid rgb(0,0,0); min-width: 100px; max-width: 100px; }
<table> <tr> <td class="first"> <div>Don ovonMrLongNameIsMe!!!</div> </td> </tr> </table>
Jack allen
source share