force text not to wrap css code example
Example 1: stop text from wrapping
div {
white-space: nowrap;
overflow: hidden;
}
Example 2: css how to make text not break
/* If you don't know why your line is breaking or you just want to make sure
this doesn't happen, add the CSS bellow: */
white-space: nowrap;
/* Example:
HTML: */
<p>This is a paragraph<p>
/* CSS: */
p { white-space: nowrap; }
Example 3: css prevent line break
white-space: nowrap;