![]() |
| IE | FF | Op | Saf |
|---|---|---|---|
The white-space property defines how white-spaces appears in an element. Whitespace is a collective name for space, tab, line feed, carriage return, and form feed. The default value normal collapses whitespace characters in a sequence into a single whitespace character.
| Value | Description |
| Normal | Collapses whitespace characters into a single whitespace. Line breaks will occur whenever the line is full. |
| nowrap | Collapses whitespace characters into a single whitespace. Line breaks will never occur, the whole text will be written on one line. |
| pre | Does not collapse whitespace characters. Lines will be written as they are written in the element (with line breaks etc.). No automatic line breaks at the end of the element will occur. |
| pre-line | Like normal text but will display linebreaks that are in the text. |
| pre-wrap | Like pre, but automatic line breaks will occur at the end of the element. |
Comments