white-space

The white-space CSS property is used to to describe how whitespace inside the element is handled.

Values

normal
Sequences of whitespace are collapsed. Newline characters in the source are handled as other whitespace. Breaks lines as necessary to fill line boxes.
nowrap
Collapses whitespace as for normal, but suppresses line breaks (text wrapping) within text.
pre
Sequences of whitespace are preserved, lines are only broken at newline characters in the source and at
elements.
pre-wrap
Sequences of whitespace are preserved. Lines are broken at newline characters, at
, and as necessary to fill line boxes.
pre-line
Sequences of whitespace are collapsed. Lines are broken at newline characters, at
, and as necessary to fill line boxes.

<!DOCTYPE html>
<html>
    <head>
        <style>
            code {
                white-space: pre;
            }
        </style>
    </head>
    <body>
        <code>
            The quick brown red fox jumps     over the lazy dog
        </code>
    </body>
</html>