A Pen by Prasanna N on CodePen.
Created
April 2, 2014 11:48
-
-
Save npras/9932573 to your computer and use it in GitHub Desktop.
A Pen by Prasanna N.
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
<p class="selectable"> | |
Lorem ipsum blah blah | |
</p> | |
<p class="unselectable"> | |
Lorem ipsum blah blah | |
</p> |
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 { | |
-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