Home >Web Front-end >CSS Tutorial >css white-space:nowrap attribute usage (can force text to be output without wrapping)_CSS/HTML
To force no line breaks, just use white-space:nowrap.
CSS settings do not wrap:
overflow:hidden Hide
white-space: normal Default
pre Line breaks and other whitespace characters will be protected
nowrap Force all text to be displayed on the same line until The text ends or encounters the br object
Example: Force no line breaks