DEV Community


My z-index nightmare

Moulun Kevin
Hi I'm Kevin but better know as ATNdesign, I like to share some knowledge with people Front end developper
・1 min read

My z-index nightmare

Since I started developping, I ran into some issues with CSS, but lately I discovered why I was pulling my hair off

While I was working with my latest project, I encountered z-index issue

I was trying to make it work, but it did not

But why ?

The z-index property needs a position for it to work, that's what I discovered

You might already know that but I wanted to share it

Thank you for taking the time to read this post! πŸ™

Discussion (0)

Forem Open with the Forem app