I have a common table in my HTML, but when a <td>
has a large content the line break does not happen, even adding CSS:
table td, th {
padding: 5px;
white-space: pre-wrap;
}
I have a common table in my HTML, but when a <td>
has a large content the line break does not happen, even adding CSS:
table td, th {
padding: 5px;
white-space: pre-wrap;
}
It has a word-wrap and a white-space in your code, and the white-space nowrap that comes after does not let the text break, so your text does not break it's text-overflow
I've already had a problem with line breaks and I've managed to solve this with just this style below:
white-space: pre-wrap;