how to use z-index with relative positioning?

后端 未结 4 1477
感动是毒
感动是毒 2020-12-03 09:57

I have a problem with z-index and my code. I want to have a popup on every row, positioned relative to that row. So I created this code:

4条回答
  •  隐瞒了意图╮
    2020-12-03 10:01

    When you set position: relative on an element then you establish a new containing block. All positioning inside that block is with respect to it.

    Setting z-index on an element inside that block will only alter its layer with respect to other elements inside the same block.

    I'm not aware of any work-arounds.

提交回复
热议问题