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.

CSS z-indexの使用

Last updated at Posted at 2019-10-09
22ee0fde90db24b73255b249e9a14407.png

z-index:数字で指定した値が大きい要素ほど上に表示されます。数字には整数を入れます。

class="one">1番目
class="two">2番目
class="three">3番目

.one {
z-index: 10;
left: 10;
top: 10;
}
.two {
z-index: 20;
left: 20px;
top: 20px;
}
.three {
z-index: 30;
left: 30px;
top: 30px;
}
-1.png

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?