✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Який елемент буде відображено поверх інших?
<div class="a"></div>
<div class="b"></div>
<style>
.a {
position: absolute;
z-index: 1;
background: red;
width: 100px; height: 100px;
}
.b {
position: absolute;
z-index: 2;
background: blue;
width: 100px; height: 100px;
top: 50px; left: 50px;
}
</style>