【CSS】line-height - 文字の行間
CSSのline-heightプロパティについてご紹介します。
line-height
line-heightは文字の行間を定義します。
基本構文
line-height: 値;
サンプル
次のサンプルは文字の行間を36pxに設定します。
<style>
p {
line-height: 36px;
}
</style>
<p>
text text text text text
<br>
text text text text text
<br>
text text text text text
</p>