What is the white space property in HTML?
The white-space property controls how text is handled on the element it is applied to. Let’s say you have HTML exactly like this: You’ve styled the div to have a set width of 100px. At a reasonable font size, that’s too much text to fit in 100px. Without doing anything, the default white-space value is normal, and the text will wrap.
When do sequences of whitespace collapse into one whitespace?
Sequences of whitespace will collapse into a single whitespace. Text will wrap when necessary. Sequences of whitespace will collapse into a single whitespace. Text will never wrap to the next line. Whitespace is preserved by the browser. Text will only wrap on line breaks.
What are the keywords for white space in CSS?
/* Keyword values */ white-space: normal; white-space: nowrap; white-space: pre; white-space: pre-wrap; white-space: pre-line; /* Global values */ white-space: inherit; white-space: initial; white-space: unset; The white-space property is specified as a single keyword chosen from the list of values below.
How is white space handled in the source?
The white-space property is specified as a single keyword chosen from the list of values below. Sequences of white space are collapsed. Newline characters in the source are handled the same as other white space.
Where do I set white space in a paragraph?
If a table is not the culprit, then the white space may be set in the Paragraph settings. Place the cursor in the heading. On the Home tab, in the Paragraph group, click the little arrow in the lower right corner to launch the Paragraph dialog box.
What’s the default white space for a Div?
You’ve styled the div to have a set width of 100px. At a reasonable font size, that’s too much text to fit in 100px. Without doing anything, the default white-space value is normal, and the text will wrap. See the example below or follow along at home with the demo.