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

<!-- 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>
Only tabs with a " " have code.
Only tabs with a " " have code.
Only tabs with a " " have code.
Only tabs with a " " have code.
If you have already pasted this code into your project then you can skip this. If you haven't, and it's your first time using CodeCrumbs, then copy this code and navigate to your sites global settings > Custom Code tab > paste it into the <head> (first custom code block). It just needs to exist once.
Author
N/A
Updated on
May 8, 2024

How to use:

Unlock more with PRO

Want to learn how to use this Crumb? Unlock detailed documentation, video tutorials, comments & support!

Upgrade to Pro

Unlock more with PRO

Want to learn how to use this Crumb? Unlock detailed documentation, video tutorials, comments & support!

Upgrade to Pro

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

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

Clone Project
Documentation
Author:
Status:
Deprecated
New
Updated
Latest Version:
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