0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

cssで真ん中に配置する

Posted at

真ん中に配置する

自分用に真ん中に配置する方法についてまとめて見ました!

私が使うやつ

  • marginを使う
  • text-alignを使う

要素を真ん中に配置するのはmarginをよく使います
margin: 0 auto;
とか言う形で使うことが多いですね!
文字を真ん中に配置したいときは
text-align: center;
とすることが多いです!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?