Typography - Getting The Hang Of Typography

(lu) #1

nowrap
white-space-collapsing: collapse/text-wrap: none


pre-wrap
white-space-collapsing: preserve/text-wrap: normal


pre-line
white-space-collapsing: preserve-breaks/text-wrap: normal


This property can be useful if you want to, for example, display snippets of
code on your Web site and preserve line breaks and spaces. Setting the
container to white-space: pre will preserve the formatting.


The use of nowrap in the WordPress backend.


WordPress uses white-space: nowrap on its dashboard so that the
numbers indicating posts and comments don՚t wrap if the table cell is too
small.

Free download pdf