Forum How do I...?

Limit height of table row

mickyjtwin
I have a table with multiple rows, and the content that goes into a cell in a row is dynamically added. If I want that row to be a certain height, so any text that goes over that height is not displayed, is there a way to do this?

I have tried combinations of setting tr height, td height, overflow hidden etc to no avail?
mikeday
Setting max-height on the <td> should work, but the most robust solution is probably to add a new <div> wrapper element inside the <td> and apply the height and overflow properties to that.
mickyjtwin
Thanks for that. The div inside seems the best solution and works very well. The output we are getting is fantastic, and this product keeps on amazing me at every turn!