I have an accordion menu that I have tweaked to suit my needs. My last stumbling block is that I have an image (see attached image) of a FedEx Courier that I need to lay on top of the menu and yet still allow users to click through it to activate (access) the accordion menu. The image is a separate image that is set to the desired alpha as created in Photoshop. The file is merely a snapshot of how it would look if it was the way I wanted it.
If this is even possible, what code would I use and exactly where would I place it? If in the CSS file, where does it go and between which lines?
2
Answers
You can apply the css:
to the image above the links.
See fiddle https://jsfiddle.net/4zgcrkyz/
pointer-events: none;
is a suitable solution if you do not need to care about IE < 11. More info on compatibility here.Alternatively you can use elementFromPoint() which has compatibility IE > 5.5
The following trick allow you to select under your cover image without using
pointer-events: none;
https://jsbin.com/tuhotagize/edit?html,output
Explanation:
Another alternative solution to your problem, which does not include any JS is:
You can achieve the same visual effect using only CSS.