ブロック要素を中央に配置

いくつか方法がある。

1. centerタグを使って囲む
2. スタイルシートで対処する

スタイルシートで対処する場合は

  • Internet Explorerならば、text-align: centerで。
  • それ以外は、 margin-left:auto; margin-right:auto;を使う。