Skip to content

Instantly share code, notes, and snippets.

@montyr75
Last active January 2, 2016 04:09
Show Gist options
  • Save montyr75/8248413 to your computer and use it in GitHub Desktop.
Save montyr75/8248413 to your computer and use it in GitHub Desktop.
Prevent the user from selecting text on the page.
.user-select-none {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment