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