You can keep a phrase together using nowrap
, such as
DO NOT BREAK THIS ACROSS TWO LINES!
You can use nowrap to keep some browsers from breaking a hyphenated word across two lines, such as the following word: super-cali-fragilistic-expi-ali-docious!
You can keep together a small code snippet containing a space, such as
<br />
.
Notice how it breaks across two lines when nowrap
is not applied to it: <br />
.
Be aware that nowrapped text can overflow its container. This does not affect the width of other elements, but it may cause a browser to display a horizontal scrollbar requiring users to scroll to see the text.