About Decorative Overlays

With CSS you can create an overlay with an image or gradient background which will be ignored by mouse events and will pass all activities to the elements underneath.

1
2
3
4
5
6
7
8
9
.decorative-overlay {
    pointer-events: none;
    background: url("../img/shining.png");
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

The essential part here is pointer-events: none;.

Tips and Tricks Web Design CSS3