【CSS】word-spacing - 単語間のスペースサイズ
CSSのword-spacingプロパティについてご紹介します。
word-spacing
word-spacingは単語間のスペースサイズを示すプロパティです。
基本構文
word-spacing: 値;
サンプル
次のサンプルはテキストを書字方向に寄せます。
<style>
.p1 {
word-spacing: normal;
}
.p2 {
word-spacing: 0.2em;
}
.p3 {
word-spacing: 10px;
}
</style>
<p class="p1">text text text text text</p>
<p class="p2">text text text text text</p>
<p class="p3">text text text text text</p>