20
I have this code on my website:
.fixed-background {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
overflow: hidden;
}
img {
height: auto;
width: auto;
min-width: 100%;
min-height: 100%;
}
<a href="https://answall.com" target="_blank">
<img class="fixed-background"
src="http://s3.amazonaws.com/rapgenius/cats-animals-kittens-background.jpg"/>
</a>
I wanted only the cat’s eye to be clickable, but also the image to fit the size of the browser (width and height), that is, the image has to match the top, the bottom, the right and the left whatever the size of browser.
I tried with the map
and area
but I couldn’t because the image has no fixed size. How can I do this?
A long time ago Dreamweaver had a tool to create these clickable maps on an image. It was very easy, you select with the mouse the area and ready. Maybe it will help you.
– rochasdv
Thanks @rochasdv vi now that Gimp also has.
– Jorge B.