Wrap text inside a table cell

I want to make sure the text can never expand my table, no matter how long it takes. I already have a PHP code restriction code of 100 per cell, but I want to make sure that a long text string can never expand the table. For instance:

atextstringthislongwithoutanyspacescanexpandthewidthofmycellrightnow

+3
source share
3 answers

word-break: break-all usually does the trick, however I remember that I have some problems in Chrome, where long words still won't break correctly.

+1
source

If there are certain places that you want to control, you can use the wbr tag .

+1

div , div.

, . !

0

Source: https://habr.com/ru/post/1782384/


All Articles