I’ve read many things online but I haven’t found a way to make it work..
What I want:
I have a body background image and I was asked to make it a link as an advertisement.. The problem is that whatever I tried makes the whole page a link, whereas I want only the background of the webpage to act as a link. Is it possible,through html and css? Or even with use of javascript? Any solution is accepted… I’m stuck..Thanks in advance!
You can’t have the background image be the link. You can use JS to catch all clicks that are on the body, but not on one of its children
You can use jQuery for a cross browser version
If you want to give the background the cursor appearance, you can apply the following CSS
See it in action here