Archived topic
Overlapping Containers Help
3 replies · Started by Shane on August 26, 2021
Hello!
I am trying to overlap two sections on my website. There's a form in a container that I am applying negative margin too and the sections go underneath one another vs overlap.
Loom video explanation: https://www.loom.com/share/e9e1dee821d54c8dba63a9235d72f772
Thank you!
Hi Shane,
When using negative margin, you might need to set z-index to the containers.
1. Set the first container inner z-index to 3.
2. Set the second container outter z-index to 2.
3. Add negative top margin to second container.
Let me know if this helps :)
thanks problem solved
You are welcome :)