Definition
The word-spacing property controls the amount of spacing in between words. This property can be set in any one of the available CSS length units.
Using this attribute we can define or set the space between each words.
It takes the following values.
a)cm : You can set the value in centimeters as 1cm etc...
b)px : You can set the value in pixels as 1px or 10px etc...
c)pt : you can set the value in points as 1pt or 2pt etc
d)norm : on setting norm, normal / default word spacing will be taken.
One important note to mention about this property is that any amount you specify will be in addition to the default amount of spacing between words. Negative lengths are permitted.
Inherited: Yes
Note: Negative values are allowed.
Examples
p{word-spacing: 30px
}
p{word-spacing: -0.5px
}
<font style="word-spacing: 1cm;"> Test for word spacing </font>
Result: Test for word spacing
<div style="word-spacing: 10px;"> Test for word spacing </div>
Result:
Test for word spacing
<h5 style="word-spacing: 10pt;"> Test for word spacing </h5>
Result:
Test for word spacing
Comments (0)
You don't have permission to comment on this page.