Skip to content

Instantly share code, notes, and snippets.

@nathggns
Created June 25, 2014 14:44
Show Gist options
  • Save nathggns/a69caa3da2b040776169 to your computer and use it in GitHub Desktop.
Save nathggns/a69caa3da2b040776169 to your computer and use it in GitHub Desktop.
Untitled
.no-select, .no-select * {
-webkit-user-select: none;
}
.selectable, .selectable * {
-webkit-user-select: all:
}
<div class="no-select">
<p>This is some text that isn't selectable. You should be able to use the input below, however</p>
<p class="selectable"><input type="text" placeholder="I should be usable"></p>
</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment