You are here: Reference > CSS > properties > word-spacing

word-spacing property

Browser support:
Specifies the spacing between words.
Negative values are permitted.
JavaScript page for this property: wordSpacing. You can find other example(s) there.

Possible values:

 One of the following values: 
inherit
Takes the value of this property from the computed style of the parent element.
normal
Default. Normal spacing is used, which is dependent on the font or on the default browser settings.
space in length
The space between words in length units. For the supported length units, see the length page.
Default: normal.

Example HTML code 1:

This example illustrates the use of the word-spacing property:
<head>
    <style>
        .example {
            word-spacing: 10px;
        }
    </style>
</head>
<body>
    <b class="example">word spacing sample text</b>
</body>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content