hey i have a problem with this code:
#selector{
width:100%;
height:100px;
background-color:#333;
position: fixed;
transform: translate(50%);
right: 50%;
top: 10px;
width: 95%;
z-index: 20;
}
#selector::after{
content: '';
width: 95%;
height: 10px;
position: absolute;
right: 50%;
bottom: -4px;
border-radius: 5px;
transform: translate(50%);
background: #3D74FE;
z-index: -1;
}
<div id="selector"></div>
u can see that i have a z-index for #selector::after, but it doesn't work and it doesn't go behind my #selector!!!