Style wordSpacing Property
Style wordSpacing Property
The wordSpacing property is used to either set or return the spacing between words in a text. For doing the same thing with characters, we need the letterSpacing property.
Syntax:-
Its syntax is:- object.style.wordSpacing OR object.style.wordSpacing = normal | length | initial | inherit
Return:-
Its return is:- a string containing space between words in the text
Further Explanation:-
Value | Description |
---|---|
normal | Defines the normal spacing between words. |
length | Specifies space between words in length units. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |