How to enable CSS word-wrapping in div?

Spread the love

Tto enable CSS word-wrapping in div, we set the white-space property.

For instance, we write

div {
  word-wrap: break-word;
}

to add word-wrap: break-word; to make the words wrap in the div.

Leave a Reply

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