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. Related