How to position div above other divs using z-index?

Use the following CSS styling to position a div above a parent div.

#childDiv {
z-index:1;
background:#fff;
position:absolute;
box-shadow: 5px 5px 5px 2px  #ccc;
right:0
}

Search