cssで上下左右に中央寄せするサンプル
text−alignで中央寄せ
インライン要素
line-heightで中央寄せ
インライン要素
margin: autoで中央寄せ
ブロック要素
paddingで中央寄せ
padding
ulで中央寄せ
解説記事に戻る