How to disable text wrap with CSS?

Spread the love

To disable text wrap with CSS, we set the white-space property.

For instance, we write

div {
  white-space: nowrap;

to set white-space to nowrap to disable text wrap in the div.

Leave a Reply

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