CSS: Why background-color breaks/removes the box-shadow?

后端 未结 3 610
无人共我
无人共我 2020-12-15 17:59

I have a pretty simple div structure - tree boxes with middle box highlighted with box-shadow:

3条回答
  •  时光说笑
    2020-12-15 18:26

    adding .obHiLight{opacity:0.999} creates a new stacking context for that element, which makes it appear above the others as well. This might work for tables too (didn't test :) . @ItJustWerks @brian-tacker

提交回复
热议问题