Are you using position: absolute; to overlap elements?
It's almost always better to Use CSS Grid instead!
I Keep Importing The Wrong Things In Vscode
Use Css Grid To Stack Items
How to Make a DOM Library Render Anything w/ Paolo Ricciuti