The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Creating invisible A tags over an image
Hey guys!
Here is the image – http://tinypic.com/r/2lc5xk/8
As you can see there is several year’s on there that need to be able to clickable to another year / page.
I was wondering if there was a A tag css attribute that I could use? Also will it stay over the image if it’s responsive?
Thanks guys!
RS
<a> tags are HTML, not CSS. No, you cannot create a hyperlink with CSS.
<a>
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>.
a
<map>
<map name="a"> <area shape="rect" coords="25,25,75,75" href="#fail"> </map> <img usemap="#a" src="image.png">