Disable User Select

</ head>

<!-- DISABLES TEXT SELECT -->
<style>
/* disable user selection of an element */
.noselect {
  -webkit-user-select: none; /* webkit browsers */
  -khtml-user-select: none; /* Konqueror browser */
  -moz-user-select: none; /* firefox browser */
  -ms-user-select: none; /* internet explorer & edge */
  user-select: none;
}
</style>

</ body>

HTML/Embed

Author
N/A
Published
Nov 13, 2020

How to use:

Simply paste the CSS code into the </ head> custom code section of either the page's settings or the global site settings like you see below.

Once you have that pasted you can add the class "noselect" to any element/text that you want to disable selection for like you see below. This may not seem appealing but there are circumstances some people may find this useful.

Tutorial Coming Soon!

Check Browser Support

Interactive Table

Data on support for the user-select-none feature across the major browsers from caniuse.com

Comments

Unfortunately at this time we don't have SSO for comments so you will have to sign up separately to leave your comment. Thanks for understanding!

Disable the option for any user to highlight and select an element on your web page.

Clone Project
Documentation
Author:
Built by
Built with
For the best experience

Please switch to desktop to view the content.

Back Home
Thank you! Your submission has been received!
Close Form
Oops! Something went wrong while submitting the form.
Become a Contributor