Code

Disable mouse interactivity with CSS

  • Category: Code
  • Last edited: September 27, 2012

Quickly and easily remove mouse interactivity of a HTML element with this nifty piece of CSS code. This is the same as ActionScript 3.0′s “mouseEnabled = false”.

.anElement {
        pointer-events: none;
}