The white-space Values



The white-space property also supports other values: pre - text will only wrap on line breaks and white space pre-line - text will wrap where there is a break in code, but extra white space is still ignored pre-wrap - text will wrap when necessary, and on line breaks.




<p class="pre"> 
In the markup we have multiple            spaces 
and a line break. 
</p>
<p class="preline"> 
In the markup we have multiple            spaces 
and a line break, but in the result multiple spaces are ignored. 
</p>
<p class="prewrap"> 
In the markup we have              multiple 
spaces and a line break.
</p>                    
                  
                



 p.pre {
    white-space: pre;
}
p.preline {
    white-space: pre-line;
}
p.prewrap {
    white-space: pre-wrap;
}