Example

A simple user-select property example:

Laboratory

description & Usage

To determine whether we can select a text or not, we use the user-select property.

Informations

# Description
Default Value auto
Inherited no
Animatable no
Version CSS3
JavaScript syntax object.style.userSelect="none"

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
user-select

Syntax

Values

Values Description
auto Default
none It makes the user unable to select the text.
text This access is given to the user to select the text.
all Selecting all the text with 1 click instead of 2 continuous clicks.