LuanDantas
3/2/2018 - 12:15 PM

Disable selection

Makes the content unselectable.

HTML

<p>You can select me.</p>
<p class="unselectable">You can't select me!</p>

CSS

.unselectable {
  user-select: none;
}

Explanation

user-select: none specifies that the text cannot be selected.