Forums

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 Reply To: Creating invisible A tags over an image

#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">