I have a div (the parent) and another div in the parent (the child) and I want to hide the child behind the parent.
edit : I will try to explain better, so i speak about the z axis but if i do something like :
.parent {
z-index: 10;
}
.child {
z-index: 0;
}
it's not working. So i ask you the question : how my child can be under my parent on the z axis ?
.parent {
width: 200px; height: 200px;
background-color: red;
}
.child {
width: 100px; height: 100px;
background-color: blue;
}
<div class="parent">
<div class="child"></div>
</div>