I am trying to add an image to a webpage which I have used CSS to do. The problem is that I've created a hover function which shows the right side of the image. This does works but when I add position: relative or the z-index: -1, the hover function just doesn't work. Is there any way around this problem without taking out position or z-
Thanks
#logo {
background: url(http://upload.wikimedia.org/wikipedia/commons/b/b9/1875_CC_double_eagle.jpg);
width: 956px;
height: 884px;
background-position: left;
margin: auto;
position: relative;
z-index: -1;
}
#logo:hover {
background-position: right;
}