メニュー

CSS

TOP_PAGEへ

テキスト

文字の水平位置
text-align : (値);
文字の水平位置を指定します。
text-align: left(左寄せ)
text-align: center(中央)
text-align: right(右寄せ)
文字の垂直位置
vertical-align : (値);
文字の垂直位置を指定します。
その行に対してではなくインライン要素に対して指定します。
vertical-align: top 上揃え
vertical-align: middle 中央
vertical-align: bottom 下揃え
その他、下記のモノがあります。
vertical-align: baseline 行のベースライン(標準)
vertical-align: text-top 文字の上端
vertical-align: text-bottom 文字の下端
vertical-align: super 上付き
vertical-align: sub 下付き
文字の行間を指定
line-height : (値) ;
文字の行間を指定します。

line-height: 300%
line-height: 300%
line-height: 300%

line-height: 2em
line-height: 2em
line-height: 2em

line-height: 1
line-height: 1
line-height: 1

文字の間隔を指定
letter-spacing : (値) ;
文字の間隔を指定します。
letter-spacing: 1em
letter-spacing: 0.5em
文字のインデントを指定
text-indent : (値) ;
文字のインデントを指定します。
text-indent: 2em
text-indent: 4em
text-indent: 6em
text-indent: 8em
文字の装飾
text-decoration : (値) ;
文字を装飾します。
text-decoration: none(装飾無し)
text-decoration: overline(上線)
text-decoration: line-through(取り消し線)
text-decoration: underline(下線)
text-decoration: blink(点滅)
「blink(点滅)」はInternetExplorerおよびNetscape6に対応していません。