Skip to content

Instantly share code, notes, and snippets.

@marioblas
Last active April 12, 2016 09:14
Show Gist options
  • Save marioblas/458409cdf984a75b27f3 to your computer and use it in GitHub Desktop.
Save marioblas/458409cdf984a75b27f3 to your computer and use it in GitHub Desktop.
CSS - Disable text selection highlighting
/**
* Disable text selection highlighting.
*
* Reference: http://stackoverflow.com/questions/826782/css-rule-to-disable-text-selection-highlighting
*/
.no-select {
-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