The CSS white space is used to handle the white spaces inside an element. It specifies how the text written inside an element will be displayed.
Value | Description |
---|---|
normal | It is the default value. Text is wrapped whenever necessary, multiple white-space will collapse into a single one. |
nowrap | Sequence of white space will collapse into a single whitespace. No text wrapping. Line only breaks when <br> tag is used. |
pre | Whitespaces are preserved. It acts like HTML <pre> tag. Lines are only broken at newline characters in the source or at <br> tag. |
pre-line | Multiple white spaces will collapse into a single one. Text is broken at newline characters, at <br> , and when necessary. |
pre-wrap | Whitespaces are preserved. Text is broken at newline characters, at <br> , and when necessary. |
initial | It sets this property to its default value. |
inherit | It inherits the property from its parent element. |
This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some
This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.
white-space |
Follow Us: