I seem to be facing an issue with the z-index property. Here is the code snippet in question:
<div id="sidebarCont">
<div id="avatarCont" class="mask">
<img id="" class="" src="img.jpg" alt=""/>
</div>
And here is the corresponding CSS:
#avatarCont{
overflow:hidden;
height:160px;
width:160px;
margin:0px auto;
background:url('../img/mask.png') no-repeat;
position:relative;
z-index:70;
}
#avatarCont img{
position:absolute;
top:0px;
left:0px;
z-index:50;
}
I am trying to apply a mask on the image, but I'm encountering difficulties. Any ideas on how to resolve this problem?