30
29

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 5 years have passed since last update.

CSS で縦方向に中央寄せ

Posted at

結論から言えば

.outer {
  display: table;
}
.inner {
  display: table-cell;
  vertical-align: middle;
}
<div class="outer">
  <div class="inner">somethings</div>
</div>

とすることで縦方向に中央寄せが可能です。

スクリーンショット 2014-07-25 17.35.43.png

30
29
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
30
29

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?