I am having a table which is wider than the screen, and some td's also contain a lot of text. How to limit the row height to 3 lines (and let the table become even wider)?
Here: How to hide Table Row Overflow? is a very similar question, except that I need 3 lines not just 1. So whitespace: nowrap does not work for me.
I tried max-height: 3em on nested divs, like this:
<td><div>a lot of text...</div></td>
but it just causes the div contents to clip (the div's width remains constant!, even if I set width: auto or width: 100%).
BTW I don't want table-layout: fixed, because I don't want to specify column widths manually.
Thanks!