CSS word-spacing Property

❮ Previous Reference Next ❯


.example1 {
  word-spacing: normal;

.example2 {
  word-spacing: 50px;

Lorem Ipsum is simply dummy text of the printing and typesetting industry.


The word-spacing property sets the spacing between words.

A large positive or negative word-spacing value will make the sentences the styling is applied to unreadable.

For text styled with a very large positive value, the words will be so far apart that it will no longer appear to be a sentence.

For text styled with a large negative value, the words will overlap each other to the point where the beginning and end of each word is unrecognizable.

Default value:normal
JavaScript syntax:

Standard Syntax

word-spacing: normal|length|initial|inherit|revert|revert-layer|unset;

Browser Support

The numbers in the table specify the first browser version that fully supports the property.


Property Values

The following table describes the values of this property.

Value Description
normal This is default value(0.25em). The normal inter-word spacing, as defined by the current font and/or the browser.
length Specifies the extra spacing between words as a length value in px, pt, cm, em, etc. Negative length values are allowed.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element animation-delay property.
revert Reverts the cascaded value of the property from its current value to the value the property
revert-layer Rollback styles to the ones specified in previous cascade layers.
unset Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not.

Default CSS Property Values

selectors {
  word-spacing: normal;
❮ Previous Reference Next ❯