HTML
<div class="box1"></div>
<div class="box2">
<div class="box3"></div>
</div>
CSS
Properties of box1, box2 and box3 are:
box1 {
position: absolute;
z-index: 100;
background-color: rgba(39, 39, 39, 0.3);
height: 90px;
width: 712px;
left: 0px;
bottom: 216px;
}
.box2 {
position: relative;
}
.box3 {
position: absolute;
bottom: 263px;
margin-left: 50px;
}
In the given scenario, I have set up box1 as absolute and placed box3 inside it by also making it absolute. However, a challenge arises when attempting to make box1 fixed but maintaining box3's positioning. The trick lies in adjusting the CSS to achieve this smoothly.