You should use white-space: nowrap;
for date columns. I'm not sure what you mean when you say you want the description cells to be shorter? Just adjust the width to get the desired result.
Just add white-space:nowrap in your CSS and it will make everything appear on one line. See
belowtable { border-collapse: collapse; width: 100px; } td { border: 1px solid gray; padding: 0.25rem 0.5rem; } td:last-child { white-space: nowrap; }
<table> <tr> <td>Description</td> <td>Date</td> </tr> <tr> <td>This is a really long description cell with many lines</td> <td>2022-10-12</td> </tr> </table>