CSS word-spacing attribute

Examples

Space between words specified segment, should be 30 pixels:

p
{
word-spacing:30px;
}


Attribute definitions and instructions

word-spacing property to increase or decrease the gaps between words.

Note: negative values are allowed.

Defaults: normal
inherit: yes
version: CSS1
JavaScript syntax: object .style.wordSpacing = "10px"


Browser Support

Figures in the table represent the first browser to support the version number of the property.

属性
word-spacing 1.0 6.0 1.0 1.0 3.5

Property Value

value description
normal default. Defines a standard space between words.
length Defines a fixed space between words.
inherit Predetermined value of word-spacing should inherit properties from the parent element.

related articles

CSS tutorial: CSS the Text