I have the following code:
<!DOCTYPE html> <html >
<head>
<style type="text/css">
.imgBox {background: url(lock75.png) no-repeat; }
.imgBox:hover {background: url(lock75light.png) no-repeat; }
</style>
</head>
<body>
<div style="width:200px; height:200px; border:1px solid;" class="imgBox"> </div>
</body>
</html>
My images are 75x75 and the problem occurs that when I hover over the border the image changes, I want when hovering over the image to change the image.
Note: I need a html construction similar to this one.
EDIT
I forgot to mention that I need the picture to be centralized above the other divs which I have not a certain space for the picture.
Thanks
divwidth to 75px.