I would like to trim a part of the
You might be able to use the CSS text-overflow: ellipsis property. According to this compatibility table, it is supported by all major browsers. Based on this answer, it looks like you also need to define if it is too long. This will make sure the table doesn\'t get messed up. All the data in the following table is re
table-layout: fixed on the table, and overflow: hidden and white-space: nowrap on the cells. The fixed table layout will also require you to adjust your column widths explicitly.