1. Home
  2. Computing & Technology
  3. Web Design / HTML

word-spacing

By Jennifer Kyrnin, About.com

word-spacing Description:

The word-spacing property defines the default amount of space between words. This can be impacted by justification and other issues.

word-spacing in CSS Versions:

word-spacing Syntax:

word-spacing: normal | <length> | inherit

  • normal
    The normal inter-word space defined by the user agent.
  • <length>
    An additional amount of space between words, including the normal amount.
  • inherit
    The element should have the same word-spacing setting as the parent.

word-spacing Initial Value:

normal

word-spacing Applies To:

All elements.

word-spacing Inheritance:

This property is inherited.

word-spacing Browser Support:

word-spacing Examples:

1em spacing

<p style="word-spacing : 1em;">
The words in this paragraph should have at least 1em between them.
</p>

word-spacing Special Notes:

  • A word is typically defined as a series of characters surrounded by whitespace. But some browsers may define this differently.
  • Negative values are permitted and the browser will display these by shrinking the space between words.

More word-spacing Information:

Return to the Style Library

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. CSS
  5. Style Properties
  6. CSS Style Property: word-spacing

©2008 About.com, a part of The New York Times Company.

All rights reserved.