How to layer box-shadows using z-index?

后端 未结 3 1210
礼貌的吻别
礼貌的吻别 2020-12-19 03:19

codepen



        
3条回答
  •  攒了一身酷
    2020-12-19 03:35

    If you're using z-index, make sure the element has a defined position attribute or it won't work. Wherever you use z-index in your css, define the position of that element. (Absolute, relative, inherit...)

提交回复
热议问题