Hi,
I am trying to align some text over an image and have given the image style a z-index of -1 and the text a z-index of 5 the image still obscures the text. How do I achieve this.
Regards,
Joe
Hi,
I am trying to align some text over an image and have given the image style a z-index of -1 and the text a z-index of 5 the image still obscures the text. How do I achieve this.
Regards,
Joe
Hello! z-index works only if you set for element position = absolute, fixed or relative. Please check that.
Hi Marina, Thanks or your reply. The complete css is:
.email
{
background-image: url("../image/ic_dialog_email.png")!important;
background-repeat:no-repeat;
width:65px;
height:55px;
position:fixed;
top:40px;
right:115px;
z-index:-1;
}
You should add CSS and set z-index for text too. Also try to use z-index with big numbers. For example for image z-index=1000 and for text z-index=2000.