Skip to content

transform class is increasing the z-index of a div #2100

Answered by adamwathan
neel1996 asked this question in Help
Discussion options

You must be logged in to vote

This happens even if you aren't using Tailwind, just how CSS works:

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context

You need to work around it by explicitly assigning a position other than static and a z-index to the things that are layering unexpectedly.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by neel1996
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2100 on August 02, 2020 11:54.