Inserting a non-breaking space
When a browser (or Namo WebEditor’s Edit mode) displays a paragraph of text, it “wraps” the paragraph by automatically breaking it at the right edge of the window (or the paragraphs’ parent containerThe element, frame, or window that immediately contains the current element., such as a table cell) so that no line is wider than the window or container. This saves you and your users the trouble of scrolling the window horizontally to see all of a long paragraph. These automatic line breaks can occur wherever there is a space between words or characters. However, there may be occasions when you do not want an automatic line break to occur in a particular place, no matter what. For example, you may have a heading that you want to always be displayed on a single line, even if it means having to scroll horizontally to see all of it.
In such cases, instead of inserting ordinary spaces between words, you can insert non-breaking spaces. If a browser encounters a non-breaking space in a paragraph, it will never break the paragraph at that space. To prevent a paragraph from breaking at all, you can insert non-breaking spaces between all of its words, as in the example below:
A heading with normal spaces
A heading with non-breaking spaces
To insert a non-breaking space
- Do one of the following:
- On your custom toolbar, go to the Other menu and click Non-Breaking Space. If the Other menu is not visible, add it to the toolbar by opening the Customize dialog box, going to the Commands tab, selecting Insert from the Categories list and then selecting Other from the Commands list.
- Press the space bar while holding down the Ctrl key.
If you have many or long paragraphs that you do not want wrapped, instead of using non-breaking spaces, it is more convenient to define a style that includes the white-space property with the value “nowrap” and apply the style to the paragraphs.
To prevent wrapping in a table cell, you can apply the “nowrap” attribute to the cell. (Right-click the cell and select Cell Properties the click the No wrap box in the Table Properties dialog box.)
Related topics
Controlling text wrapping in a table