1

Consider the following example:

<div id="div-B w-100 h-100" style="z-index: 5; position: absolute; top: 0; left: 0">
  //code here
</div>

<div id="div-A" style="z-index: 1;">
  <button style="z-index:500000">Try click</button>
</div>

By the way the z-index works according to the documentation the child element of div-A (button) would have a smaller z-index than div-B because its parent has a smaller z-index.

My question is, is there any way to make the child element (button) be greater than div-A?

j08691
  • 204,283
  • 31
  • 260
  • 272

0 Answers0