white space property - ythy/blog GitHub Wiki
white-space property declares how white space inside the element is handled.
Value: normal | pre | nowrap | pre-wrap | pre-line | inherit
Initial: normal
Applies to: all elements
Inherited: yes
Percentages: N/A
Media: visual
Computed value: as specified
Values have the following meanings:
- normal
This value directs user agents to collapse sequences of white space, and break lines as necessary to fill line boxes. - pre
This value prevents user agents from collapsing sequences of white space. Lines are only broken at preserved newline characters. - nowrap
This value collapses white space as for 'normal', but suppresses line breaks within text. - pre-wrap
This value prevents user agents from collapsing sequences of white space. Lines are broken at preserved newline characters, and as necessary to fill line boxes. - pre-line
This value directs user agents to collapse sequences of white space. Lines are broken at preserved newline characters, and as necessary to fill line boxes.