Created
May 12, 2014 11:13
-
-
Save iArnaud/509c2ba67b730a46c940 to your computer and use it in GitHub Desktop.
CSS rule to 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
*.unselectable { | |
-moz-user-select: none; | |
-khtml-user-select: none; | |
-webkit-user-select: none; | |
/* | |
Introduced in IE 10. | |
See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/ | |
*/ | |
-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