У меня есть 2 деления, я стараюсь поместить один из них позади другого, а это означает, что обертка должна нарезать низкоуровневый div и быть над ним.
Я пытался использовать свойство z-index, но это не помогло
.feedback-wrapper {
box-sizing: border-box;
width: 300px;
background-color: #fff;
position: fixed;
z-index: 999;
bottom: 25%;
top: 25%;
left: -310px;
...
.arrow-wrapper {
transition: 0.2s;
position: fixed;
top: 40%;
left: -0.5rem;
// background-color: red;
width: 100px;
height: 100px;
z-index: 1;
i {
&:first-of-type {
position: relative;
font-size: 25rem;
font-weight: bold;
color: rgba(38, 156, 117, 0.6);
}
&:nth-child(2) {
cursor: pointer;
position: absolute;
top: 116px;
left: 55px;
font-size: 2rem;
color: #fff;
font-weight: bold;
}
}
}
}
<div class="feedback-wrapper">
...
</div>
<div class="arrow-wrapper">
<i class="fas fa-chevron-right" id="arrow-feedback" ></i>
<i class="fas fa-question" id="toggle-feedback"></i>
</div>
</div>
результат должен быть таким, что оболочка обрезает зеленую стрелку и идет над ней, как на рисунке ниже:
Большое спасибо!