I want to make UI on web page like this. But I cant understand how should I do that. I tried z-index and I couldn't make the page like this.
<style>
.divilk {
background-color: red;
z-index: 1;
width: 100%;
height: 500px;
}
.divikinci {
background-color: purple;
width: 200px;
height: 300px;
margin-left: 200px;
margin-top: 100px;
z-index: 2;
}
.divtrans {
z-index: -999;
background-color: transparent;
margin-top: 100px;
margin-left: 50px;
height: 50px;
width: 50px;
}
</style>
<div style="margin-top:100px;">
<div class="divilk">
<div class="divikinci">
<div class="divtrans"></div>
</div>
</div>
</div>
And I tried divtrans's z-index:1.