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

配置の微妙なズレを修正する方法

Posted at

cssで絶対配置を書くときに、上下真ん中に配置しようと
すると微妙にずれてしまう時がある。
これをするために下記を記載すると真ん中に配置できる


 position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
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?