-2

So I want an image to overlay my website page but I still want to be able to click the links and buttons through it.

Joal Roberts
  • 33
  • 1
  • 5

1 Answers1

1

/* Example 1: Makes all the img non-reactive to any mouse events such as dragging, hovering, clicking etc */

img {
  pointer-events: none;
}

From https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events

Sudip Pal
  • 1,947
  • 1
  • 10
  • 16