css: do not wrap text

by prettyscripts on 2008-02-05 11:32:33

css

by default, texts are wrapped to the next line. to disable text wrapping inside an element, set the css property white-space to nowrap.

CSS:

.something { white-space: nowrap; }

Tags: css, text, wrap

No feedback yet

Leave a comment


Your email address will not be revealed on this site.
PoorExcellent
note: all comments are moderated. do not spam and do not advertise. only comments relevant to the post will be published.
(Line breaks become <br />)
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)