user-select

This property determines whether or not the user has the ability to select text. Except in textboxes, this has no effect on content loaded as part of a browser's user interface (chrome).

Initial value auto
Applies to all elements in the page

Syntax

  
user-select: none;
  

Values

The text of the element and its sub-elements is not selectable. Note that the Selection object can contain these elements.
The text can be selected by the user.
The element's content must be chosen atomically: If a selection contains a portion of an element, it must also contain the entire element and all of its descendants. The highest ancestor with this value will be selected if a double-click or context-click occurred in sub-elements.
Enables selection to start within the element; however, the selection will be contained by the bounds of that element.
Same as contain. Supported only in Internet Explorer.

Browser support

user-select54126910153
all5379140
auto112110152
contain1210
none1122110152
text112110152

We use cookies to improve your experience. Learn more in our Privacy policy.

×