スタイルシート属性 word-spacing は、各単語間のスペースの大きさを指定します。
以下に示すいずれかの書式で指定する。
word-spacing: normalword-spacing: length<p style="word-spacing: normal">
  The quick brown fox jumps over the lazy dog.
</p>The quick brown fox jumps over the lazy dog.
| 単位 | 意味 | 説明 | 
|---|---|---|
| em | font-size | 現在のフォントサイズ | 
| ex | x-height | xの高さ | 
| rem | root em | ドキュメントのルート要素のフォントサイズ | 
| cm | centimeters | 1cm | 
| mm | millimeters | 1mm | 
| Q | 級 (quarter-millimeters) | 0.25mm | 
| in | inches | 1 inch | 
| pc | picas | 1/6 inch | 
| pt | points | 1/72 inch | 
| px | pixels | 1/96 inch | 
| % | percent | パーセント | 
<p style="word-spacing: .5rem>
  The quick brown fox jumps over the lazy dog.
</p>The quick brown fox jumps over the lazy dog.
<p style="word-spacing: 1rem>
  The quick brown fox jumps over the lazy dog.
</p>The quick brown fox jumps over the lazy dog.
<p style="word-spacing: 1.5rem>
  The quick brown fox jumps over the lazy dog.
</p>The quick brown fox jumps over the lazy dog.
normal
テキスト
継承する
日本語は単語を分かち書きしないため、そもそも単語間に空白を入れない。日本語の文章に対して word-spacing CSSプロパティを適用しても、指定した単語間隔は効かない。
次に示す言語ではword-spacingが効かない。
| lang | 説明 | 
|---|---|
| ja | 日本語 | 
| ja-JP | 日本語(日本) | 
| km | クメール語 | 
| km-KH | クメール語(カンボジア) | 
| lo | ラーオ語 | 
| lo-LA | ラーオ語(ラオス) | 
| th | タイ語 | 
| th-TH | タイ語(タイ) | 
| zh | 中国語 | 
| zh-cmn-Hans | 中国語・普通話・簡体字 | 
| zh-cmn-Hans-CN | 中国語・普通話・簡体字(中国大陸) | 
| zh-cmn-Hant | 中国語・普通話・繁体字 | 
| zh-cmn-Hant-TW | 中国語・台湾華語・繁体字(台湾) | 
| zh-yue-Hant | 中国語・広東語・繁体字 | 
| zh-yue-Hant-HK | 中国語・広東語・繁体字(香港) | 
World Wide Web Consortium (2021) "CSS Text Module Level 3" CSS Working Group Editor Drafts