Line break inside the cell of a table

1

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;
}
    
asked by anonymous 17.12.2018 / 20:35

2 answers

1

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

    
17.12.2018 / 20:43
0

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;
    
17.12.2018 / 20:38