qa0hga
3.255K
· July 2012 ·
4bbe330b0a78070b3ddec978cd9cd612

Ignore hover events with CSS

The pointer-events CSS property will allow you to control under what circumstances (if any) a particular graphic element can become the target of mouse events. (<a href="https://developer.mozilla.org/en/CSS/pointer-events/">source</a>).

This is a great way to build CSS tooltips that hide when moused over.

.tooltip {
    /* Prevents .tooltip from receiving pointer events. */
    pointer-events: none;
}

<a href="http://jsfiddle.net/D75pb/">jsFiddle Demo</a>

Sign in or sign up to add your response.