Example
This style rule makes elements that belong
to the "poetry" class retain and render all
whitespace in the document markup:
.poetry {
white-space: pre;
}
Value
normal A value of normal dictates that sequences of whitespace will collapse
into a single space character. Line breaks will occur wherever necessary
to fill line boxes.
nowrap Specifying nowrap ensures that sequences of whitespace will collapse
into a single space character, but line breaks will be suppressed.
pre Specifying pre ensures that sequences of whitespace won??™t collapse.
Lines are only broken at new lines in the markup (or at occurrences of
"\a" in generated content).
pre-line This value will cause sequences of whitespace to collapse into a single
space character. Line breaks will occur wherever necessary to fill line
boxes, and at new lines in the markup (or at occurrences of "\a" in
generated content). In other words, it??™s like normal except that it??™ll
honor explicit line breaks.
SPEC
version initial inherited
CSS1, 2 normal YES
BROWSER SUPPORT
Op9.
Pages:
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505