Since: 23rd/May/2002; Last Modified: 25th/May/2002
ここまでで紹介したフォント関連の CSS のプロパティと、そのパラメタをまとめておきます。詳細は各項を参照ください。
font-style
normal | italic | oblique | inherit
h2 { font-style: italic }
font-variant
normal | small-caps | inherit
span.name { font-variant: small-caps }
font-weight
normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit
h1,h2,h3,h4,h5,h6,th,dt { font-weight: bold }
font-size
<absolute-size> | <relative-size> | <length> | <percentage> | inherit
<absolute-size>
[ xx-small | x-small | small | medium | large | x-large | xx-large ]
<relative-size>
[ larger | smaller ]
<length>
em
, ex
, px
in
, cm
, mm
, pt
, pc
<percentage>
h1 { font-size: 2.5em }
line-height
normal | <number> | <length> | <percentage> | inherit
p { line-height: 1.3 }
font-family
[[ <family-name> | <generic-family> ],]* [<family-name> | <generic-family>] | inherit
<family-name>
'Helvetica'
、'MS P明朝'
など<generic-family>
serif>
, sans-serif
, cursive
, fantasy
, monospace
h1 { font-family: 'Book Antique', 'Garamond', 'Georgia', 'MS P明朝', serif }