CoderTools Web site

CSS Text - word-spacing

Description


Use the word-spacing property to adjust the amount of space between words in text within html elements.

Note: negative values cause words to be closer together.

The default is normal which is the same as 0.
    word-spacing: length       /* e.g. 0.8em or 2px */
    word-spacing: normal;
    word-spacing: inherit;
    
See also: letter-spacing.
HTML & CSS Editor with FTP / FTPS

Examples for word-spacing

Example 1:

A positive word-spacing example:

test text test text test text test text
    <style>
        #test { word-spacing: 5px; }
    </style>

    <div id="test">test text test text test text test text</div>

Example 2:

A negative word-spacing example:

test text test text test text test text
    <style>
        #test2 { word-spacing: -0.6em; }
    </style>

    <div id="test2">test text test text test text test text</div>

Values for word-spacing


Name Values Description
word-spacing length e.g. 1px or 1.2em
normal
inherit
normal is the default. Specify the size of the space between words in html text.


TotalEdit Now Completely Free

CoderTools TotalEdit - The Free Text Editor

A powerful editor and notepad replacement TotalEdit makes it easier to complete your file editing and software development tasks. TotalEdit is FREE for commercial and non-commercial purposes (its freeware).

12/16/2017 9:21:44 AM
Terms Of Use | Privacy Statement | Copyright 2006-2015 © Independence Software LLP