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

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #183663

    Hey guys!

    Here is the image –

    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!



    <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">
    <img usemap="#a" src="image.png">
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.