I've got a task to do and I'm not able to find a solution or direction in which to target.
Task
This task needs some links positioned in a image full background. This image has some products inside it and the links need to be on top of these products, taking into consideration that the screen can be wider or not so the image background could stretch and therefore the position of the links would also have to adapt. Any idea how to do this?
Tryout
I tried already the <map>
and <area>
tags but the compatibility with tablets can be tricky. Also a great issue is that I can specify its position but I cannot place any image or CSS on these elements. Maybe the solution is with jquery? Any ideas?
HTML
<div class="hotspots-image">
<img class="image" src="IMAGE" class="imagemap"/>
<a class="hotspot" href="#">
<span class="hotspot-icon">O</span>
</a>
<a class="hotspot" href="#">
<span class="hotspot-icon">O</span>
</a>
</div>
So the hotspot is the links which I suppose would be positioned absolute and in a certain position. Maybe you have other inputs or directions to follow?
Thanks in advance!!!!
Fiddle:
http://jsfiddle.net/uDCuB/
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…