The white-space Property : white space : CSS Attributes and Javascript Style Properties HTML CSS TUTORIALS


HTML CSS TUTORIALS » CSS Attributes and Javascript Style Properties » white space »

 

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. 

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» white space