Last active
January 2, 2016 04:09
-
-
Save montyr75/8248296 to your computer and use it in GitHub Desktop.
Prevent the user from dragging images on the page.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* specific way */ | |
img { | |
-moz-user-drag: -moz-none; | |
-webkit-user-drag: none; | |
user-drag: none; | |
} | |
/* "nuke 'em all" way */ | |
img { | |
pointer-events: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment