DEV Community

Discussion on: Avoid z-indexes whenever possible

Collapse
danrot90 profile image
Daniel Rotter Author

I was not sure about the accessibility implications... I also thought I tried the ::after pseudo element, but it did not work as expected, because the below element will still be over the pseudo element. But not totally sure about that anymore, maybe I am going to try at one point again.

Collapse
kamcio profile image
kamcio

Here is edited codepen

Thread Thread
danrot90 profile image
Daniel Rotter Author

Okay, I also already made bad experiences with position: absolute, so I tried to not use that one as well.