
The Complete Idiot's Style Sheets Reference
| Index
| Current Category: Text |
| Previous Style: volume
| Next Style: widows
|
white-space
Controls how the browser handles white space: spaces, tabs, and carriage return/linefeed combos.
Support:
-
Notes:
- This style replaces the HTML <PRE> tag.
Possible Values:
- normal
White space is handled using the normal HTML guidelines.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
Not supported |
4.0 and later |
- nowrap
Same as normal, but line breaks are suppressed.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
Not supported |
Not supported |
-
Notes:
-
If you use this property, then you need to add HTML <BR> tags to insert line breaks in your text.
- pre
White space is preserved.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
Not supported |
4.0 and later |
-
Notes:
-
This property acts just like the HTML <PRE> tag.
Example:
<P STYLE="white-space: pre">
Here’s
some ditty,
specially done,
to lay it out all
formatted and pretty.
Unfortunately, that is all
this junk really means,
because I admit I
couldn’t scrawl
poetry for
beans.
How It Looks:
Here’s
some ditty,
specially done,
to lay it out all
formatted and pretty.
Unfortunately, that is all
this junk really means,
because I admit I
couldn’t scrawl
poetry for
beans.
| Index
| Current Category: Text |
| Previous Style: volume
| Next Style: widows
|
|