Layout Techniques with HTML 125
Formatting
Text
Layout Techniques with HTML
Web Design in a Nutshell, eMatter Edition
as preformatted. If you need a number of blank spaces within a sentence, use
nonbreaking space characters ( ) instead.
Preventing Line Breaks
Text and graphics that appear within “no-break” (
one line, and are not wrapped in the browser window. If the string of characters
or elements within
and users need to scroll horizontally to the right to see it, as shown in Figure 7-15.
The
buttons of a toolbar, so they will always display as one piece.
Adding a
within
The word-break (
with the no-break tag.
within
browser window, the
line, as shown in Figure 7-16. It keeps line lengths from getting totally out of hand.
Figure 7-14: Teletype text
Figure 7-15: Nonbreaking text
<TT>
Calories Carb(g) Fat(g)
French Fries 285 38 14
Fried Onion Rings 550 26 47
Fried Chicken 402 17 24
</TT>
text extends beyond
browser window.
<NOBR>Good food gives more than immediate pleasure. It's
a key to your family's health and vitality.</NOBR>