Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 328 Bytes

disable-selection.md

File metadata and controls

15 lines (12 loc) · 328 Bytes

Makes the content unselectable.

  • Use user-select: none to make the content of the element not selectable.
  • Note: This is not a secure method to prevent users from copying content.
<p>You can select me.</p>
<p class="unselectable">You can't select me!</p>
.unselectable {
  user-select: none;
}