a lot of text in a field of the table displays the whole text in that field, which causes the table to be drawn and leaves the webpage.
How can I do the same to keep the table in the same size and summarize the many texts?
For example, if my text is: "This is a test text and is supposed to be displayed on the website table." This will be displayed: "This is a trial text and ..."
<table> <tbody> <tr> <td style="display: block; white-space: nowrap; width: 200px; height: 20px; overflow: hidden;">This is a test text and is supposed to be displayed on the website table.</td> <td style="display: block; white-space: nowrap; width: 200px; height: 20px; overflow: hidden;">simple text</td> </tr> </tbody> </table> run here : https://html-css-js.com/css/
Обсуждают сегодня