How to fix word-wrap break-word does not work with CSS?

Spread the love

To fix word-wrap break-word does not work with CSS, we make our element an inline block element.

For instance, we write

div {
  display: inline-block;
  word-break: break-word;
}

to make the div an inline block element and apply the break-word style with word-break: break-word;.

Leave a Reply

Your email address will not be published. Required fields are marked *