Last active
April 12, 2016 09:14
-
-
Save marioblas/458409cdf984a75b27f3 to your computer and use it in GitHub Desktop.
CSS - Disable text selection highlighting
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
/** | |
* 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