DEV Community

Moulun Kevin
Moulun Kevin

Posted on

1 1

My z-index nightmare

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! πŸ™

Top comments (0)

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay