The white-space Property : white space « CSS « HTML / CSS






The white-space Property

   

The white-space property controls whether or not whitespace is preserved within and between block level elements. 


Value      Meaning

normal     Normal whitespace collapsing rules are followed.

pre        Whitespace is preserved just as in the <pre> element of XHTML, but the formatting is whatever is indicated for that element, not just a monospaced font.

nowrap     Text is broken onto a new line only if explicitly told to with a <br /> element, otherwise text does not wrap. 

   
    
  








Related examples in the same category

1.'white-space' Example
2.white-space: normal
3.white-space: pre
4.white-space:pre; white-space:nowrap;
5.white-space: nowrap, white-space: pre