I've a set of three horizontal images. Now I've to show the tool-tip image for each of these images when user hovers his/her mouse cursor on any othe three images.
The issue is in every tool-tip I want to show an image. I've to achieve this thing through CSS only. No more jQuery and other stuff.
Can someone please help me in this regard please?
Following is the HTML of the set of three horizontal images.
<table style="width:100%" id="thumbs">
<tr>
<td><span style="cursor:pointer" ><img id="img1" width="80" height="80" src="http://78.134.51.289/theme/frontend/foxplus/style/default/image/layout/OpenIcon.png"/></span></td>
<td><span style="cursor:pointer" ><img id="img2" width="80" height="80" src="http://78.134.51.289/theme/frontend/foxplus/style/default/image/layout/ColsedIcon.png"/></span> </td>
<td><span style="cursor:pointer" ><img id="img3" width="80" height="80" src="http://78.134.51.289/theme/frontend/foxplus/style/default/image/layout/SecretIcon.png"/></span> </td>
</tr>
</table>
Thanks in advance. You can take any images as tool-tip that are in .png
format and having dimensions 273px * 224 px
You can achieve that using
:after
or:before
pseudo class elements.Working Fiddle
Are you trying to display a tooltip, or are you using this as an image gallery? Either way;
Tooltip:
Gallery: