I am facing an issue with tables that contain long strings as values. Is there a way to display the entire content of a table cell if the overflowing content is hidden?
I thought about expanding the cell while overlapping adjacent cells without displacing them.
Currently, I am using the following CSS:
table{
table-layout: fixed;
margin-top: 24px;
th{
white-space: normal;
word-wrap: break-word;
}
td{
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
td:hover{
overflow: visible;
z-index: 1;
background-color: grey;
}
}
This code successfully makes the overflowing text visible and allows it to overlap adjacent cells. However, the background/cell color does not follow along.
Any tips or suggestions would be greatly appreciated. Thank you!