Home › Forums › CSS › Creating invisible A tags over an image › Reply To: Creating invisible A tags over an image
September 19, 2014 at 6:46 pm
#183664
__
Participant
<a>
tags are HTML, not CSS.
No, you cannot create a hyperlink with CSS.
If you use an a
element, the entire image will be clickable, not just a particular spot. What you’re looking for is an image <map>
.
<map name="a">
<area shape="rect" coords="25,25,75,75" href="#fail">
</map>
<img usemap="#a" src="image.png">