Hi,
Z-index controls the stacking order of layers - the higher the number the
nearer the top the layer appears. For example
Compare
<div
style="position:absolute;left:10px;top:10px;width:100px;height:100px;color:red;z-index:1"></div>
<div
style="position:absolute;left:20px;top:20px;width:100px;height:100px;color:blue;z-index:2"></div>
With
<div
style="position:absolute;left:10px;top:10px;width:100px;height:100px;color:red;z-index:2"></div>
<div
style="position:absolute;left:20px;top:20px;width:100px;height:100px;color:blue;z-index:1"></div>