<div class="disable-text-selection">
<h1>You can't select me</h1>
</div>
<div>
<h1>You can select me...</h1>
</div>
.disable-text-selection{
user-select:none;
-ms-user-selec:none;
-moz-user-select:none;
-webkit-user-select:none;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.