Z-index not working right? Here's how to fix your layering nightmares
Z-index not working? Try isolation: isolate on the parent element. This creates a new stacking context and fixes those layering nightmares so you can stack with confidence.
freeCodeCamp.org
Learn to code for free....