Created
April 12, 2017 16:17
-
-
Save surdaft/b326a7623b2310d962a96fd59a311874 to your computer and use it in GitHub Desktop.
CSS to disable text highlighting
This file contains hidden or 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
/** | |
* http://stackoverflow.com/questions/826782/how-to-disable-text-selection-highlighting-using-css | |
*/ | |
.noselect { | |
-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