I'm trying to display an image in the center of the screen when you hover on a link. I've got an image to appear when hovering on a link, but now I can't get it to center.
Here's my html:
<div class="hover_img">
<a href="#">A picture of my face<span><img src="/image.png"/></span></a>
And CSS:
.hover_img a { position:relative; }
.hover_img a span { position:absolute; display:none; z-index:99;}
.hover_img a:hover span { display:block;}