Disable selection
CSS, Interactivity, Beginner

Makes the content unselectable.

  • user-select: none specifies that the text cannot be selected.
  • 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;
                                                                    }

Ⓒ Repository by Code Honchos