HTML 「margin: 0 auto」と 「text-align: center」の違い「margin: 0 auto」と「text-align: center」の違いとは下記の通り ブロック要素はmarginを使い、テキストやインライン要素はtext-alignを使う