Is it possible to showcase a child div (located within a parent container) above another div at the same level of the parent div using z-index manipulation with jQuery and CSS? In this scenario, despite assigning a z-index of 1000 to the Calendar and 2 to gridRight, the Calendar still does not display above gridRight. The user should have the ability to drag the Calendar. How can this be achieved so that the Calendar appears above gridRight?
-Both elements are set to position: absolute
Check out the simple JSFiddle http://jsfiddle.net/LTRyd/1/
The goal is to move the red square on top of the green square while keeping the black square underneath the green one.
<div id="mainContainer" class="mainContainer"> <div id="grid1" class="grid"> <!--Z-Index of 1--> <div id="Calendar" class="item"></div> <!--Z-Index of 1000--> </div> </div> <div id="gridLeft" class="gridLeft"></div> <!--Z-Index of 2--> <div id="gridRight" class="gridRight"></div> <!--Z-Index of 2-->