0

I have a background image and I want to click on a certain area to take me to a website, how can I do that?

OskarPion
  • 1
  • 2

1 Answers1

1

This seems like a duplicate of:

How to make a section of an image a clickable link

Here's a quick little example I made based on the answer to that question:

https://jsfiddle.net/hw6L5ye9/

<img src="https://i.stack.imgur.com/vXgSW.png" width="500" height="300" alt="alttext" usemap="#mapname">

<map name="mapname">
    <area shape="rect" coords="35,230,210,290" href="http://www.example.com" alt="alttext">
</map>
lukenetsurfer
  • 84
  • 1
  • 5