【CSS】letter-spacing - テキストの字間
CSSのletter-spacingプロパティについてご紹介します。
letter-spacing
letter-spacingは字間サイズを示すプロパティです。
基本構文
letter-spacing: 値;
サンプル
次のサンプルはテキストを書字方向に寄せます。
<style>
.p1 {
letter-spacing: normal;
}
.p2 {
letter-spacing: 0.2em;
}
.p3 {
letter-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>