CSS - word-spacing


Description:

The word-spacing modifies the amount of space placed between words.

Possible Values:

  • normal: The default spacing between words is not changed. In practice, this is equivalent to setting the value to 0.
  • length: This will add to the spacing between words.the greater the length, the more space will be seen between words.

Applies to:

All the HTML elements.

DOM Syntax:

object.style.wordSpacing="10px";

Example:

Following is the example which demonstrates how to set the space between words.

<p style="word-spacing:5px;">
This text is having space between words.
</p>
     

This will produce following result:

This text is having space between words.





Spacer Bottom Left Corner ImageBottom Right Corner Image
Valid XHTML 1.0 Strict  Valid CSS! Check the accessibility of this site according to U.S. Section 508