| 属性 |
説明 |
値/記述例 |
| color |
文字色 |
カラーコード |
| color:#ff0000; |
| font-size |
文字サイズ |
数字+単位 |
| font-size:12px; |
| font-style |
斜体 |
normal italic oblique |
標準 イタリック体 斜体 |
|
| font-style:italic; |
| font-weight |
太さ |
normal bold bolder lighter 100〜900 |
標準(数値=400) 太字(数値=700) 太め(相対) 細め(相対) 数字指定(100ごと) |
|
| font-weight:300; |
| font-varient |
スモールキャップ (小さい大文字) |
normal small-caps |
標準 スモールキャップ |
|
| font-varient:small-caps; |
| font-family |
フォント指定 |
フォント |
| font-family:MS 明朝; |
| letter-spacing |
横間隔 |
数字+単位 |
| letter-spacing:5pt; |
| line-height |
行間 |
数字+単位 |
| line-height:16pt; |
| text-align |
水平位置 |
left center right |
左寄せ
中央揃え
右寄せ |
|
| text-align:right; |
| vertical-align |
垂直位置 |
top middle bottom |
上寄せ 中央揃え 下寄せ |
|
| vertical-align:top; |
| text-decoration |
修飾 |
none overline underline line-through |
無し
上線
下線
打消線 |
|
| text-decoration:underline; |