Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize


Sets the amount of additional space between words in the object.


{ word-spacing: sSpacing }

Possible values


Variant that specifies or receives one of the following values:


Default. Default spacing.


Floating-point followed by an absolute units designator (cm, mm, in, pt, or pc) or a relative units designator (em, ex, or px).

The property has a default value of normal. It is inherited.


This property adds the specified spacing after each word. Justification can influence word spacing.

The length value indicates an addition to the default space between words. Negative values are permitted.


The following example shows how to use the word-spacing property to increase the amount of space between words in a span:

   span.spacing{ word-spacing: 10; }

function fnChangeSpace(){
    ospan.style.word-spacing = 

<select ID = "oSelSpace" onchange = "fnChangeSpace()">
<span ID = "ospan" class="spacing">
The quick brown fox jumps over the lazy dog.

Standards information

This property is defined in Cascading Style Sheets (CSS), Level 1 (CSS1) Ee371251.xtlink_newWindow(en-us,Expression.40).png.

Applies to

a, address, b, big, blockquote, body, button, caption, center, cite, code, col, colgroup, custom, dd, dfn, div, dl, dt, em, fieldset, form, hn, html, i, img, input type=button, input type=checkbox, input type=file, input type=image, input type=password, input type=radio, input type=reset, input type=submit, input type=text, li, ol, p, s, select, span, sub, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var, xmp

See also

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.

Community Additions

© 2015 Microsoft