CSS Property - White Space

Value: normal | pre | nowrap
Initial: normal
Applies to: block-level elements
Inherited: yes
Percentage values: N/A

The CSS property "white-space" declares how white space inside the element is handled: the "normal" way (where white space is collapsed), as "pre" (which behaves like the "PRE" element in HTML) or as "nowrap" (where wrapping is done only through BR elements):

Example:

pre {white-space: pre;}
p {white-space: normal;}

The initial value of "white-space" is "normal", but a UA will typically have default values for all HTML elements according to the suggested rendering of elements in the HTML specification.

CSS1 core: UAs may ignore the "white-space" property in author"s and reader"s style sheets, and use the UA"s default values instead

Check Out Our Sponsors
Check Out Our Host

ANHosting

Free CSS.com is proud to be hosted by ANHosting.com. US Based Support starting at only 23 cents a day.
Use the coupon code FREECSS for 3 free months of hosting. Click Here »

Bookmarks
RSS Feed    Search

Support Free CSS.com. Sign up for a FREE account with MailChimp. No Credit Card Necessary!