You are here:About>Computing & Technology>Web Design / HTML> CSS> Style Properties> CSS Style Property: word-spacing
About.comWeb Design / HTML
Newsletters & RSSEmail to a friendSubmit to Digg
Related Style Properties

letter-spacingline-heighttext-align

Related Style Properties

vertical-align

word-spacing

From Jennifer Kyrnin,
Your Guide to Web Design / HTML.
FREE Newsletter. Sign Up Now!
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.
Related Style Properties

letter-spacingline-heighttext-align

Related Style Properties

vertical-align

 All Topics | Email Article | | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.