CSS Property: user-select
[this page | pdf | back links]
The CSS (CSS3) user-select property indicates whether
text of an element can be selected. If you (double) click on some text it will
typically be selected, and this property stops this happening.
Valid property values
(other than inherit
and initial) are:
|
Value
|
Description
|
|
auto
|
(default value). Text
can be selected by user (if allowed by browser)
|
|
none
|
Text can’t be selected
by user
|
|
text
|
Text can be selected by
user
|
|
Default Value:
|
auto
|
|
JavaScript syntax:
|
e.g. object.style.userSelect="none"
|
|
Inherited:
|
No
|
|
Animatable:
|
No
|
NAVIGATION LINKS
Contents | Prev | Next | CSS Properties