Alexander Bird Alexander Bird - 1 year ago 57
HTML Question

How to turn off word wrapping in HTML?

I feel silly for not being able to figure this out, but how do I turn off wordwrap? the css

property can be forced on with
, but cannot be forced off (only can be left alone with

How do I force word wrap off?

Jon Jon
Answer Source

You need to use the CSS white-space attribute.

In particular, white-space: nowrap and white-space: pre are the most commonly used values. The first one seems to be what you 're after.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download