Created
December 11, 2016 18:15
-
-
Save fdcore/0a4a7cc8a3f0513f8dcd7a90ede90240 to your computer and use it in GitHub Desktop.
Disable text selection highlighting using CSS
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/a/4407335/3479278 */ | |
.noselect { | |
-webkit-touch-callout: none; /* iOS Safari */ | |
-webkit-user-select: none; /* Chrome/Safari/Opera */ | |
-khtml-user-select: none; /* Konqueror */ | |
-moz-user-select: none; /* Firefox */ | |
-ms-user-select: none; /* Internet Explorer/Edge */ | |
user-select: none; /* Non-prefixed version, currently | |
not supported by any browser */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment