I am facing a challenge with the positioning of nested divs within my parent div. The first two are aligned correctly, but the third one is dropping down outside of the parent div on the y-axis. I have tried various solutions from StackOverflow without success.
The right-hand div is set to absolute positioning to achieve the correct x-axis alignment. However, it only gets half the position correct in this way.
Below is the relevant code snippet:
.supContainer {
position: absolute;
top: 900px;
left: 38%;
width: 400px;
}
.supContainer ul {
list-style-type: none;
padding-left: 0px;
margin: 0;
}
...
If you would like to see how the output looks, here is a screen-grab: https://i.sstatic.net/Rm1Mq.png
Please excuse any mistakes in my code as I am new to this. Your guidance on where I went wrong and why it occurred, along with the solution, will greatly benefit my learning process. Thank you for your help.
Appreciate it!