CSS property: -webkit-user-select

Description

Determines whether a user can select the content of an element.

Syntax

-webkit-user-select: auto | none | text;

Values

auto

The user can select content in the element.

none

The user cannot select any content.

text

The user can select text in the element.

Versions

Examples

The user can select content in the element:

p {
    -webkit-user-select: auto;
}

The user cannot select any content:

p {
    -webkit-user-select: none;
}

The user can select text in the element:

p {
    -webkit-user-select: text;
}