Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS word-spacing property

CSS word-spacing property

Example

Specify that the space between words should be 30 pixels:

p

{

word-spacing:30px;

}

Try it »


Property definition and usage

The word-spacing property increases or decreases the space between words.

Note: Negative values are allowed.

Default value: normal
Inherited: yes
Version: CSS1
JavaScript syntax: object.style.wordSpacing="10px"

Browser support

The numbers in the table indicate the first browser version that supports this property.

property
word-spacing 1.0 6.0 1.0 1.0 3.5

Attribute values

Value Description
normal Default. Defines the standard spacing between words.
length Defines a fixed space between words.
inherit Specifies that the value of the word-spacing property should be inherited from the parent element.

 


Related Articles

CSS Tutorial: CSS Text