A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/css/properties/user-select below:

user-select ยท WebPlatform Docs

user-select Summary

Controls the visible highlighting of selections of text and elements. It is possible to blind out selection completely or to allow the selection of text only.

Overview table
Initial value
all
Applies to
Visible elements
Inherited
Yes
Media
visual

Computed value
:

Animatable
No

CSS Object Model Property
:

Syntax Values
none
None of the descendants of the element can be selected, neither text nor images.
text
Only text of the element and its descendants can be selected.
all
Default. Everything, text and images, can be selected.
element
Only specified elements can be selected. Only supported in Firefox and Internet Explorer.
Examples

Deactivate selection of text for elements with the class no-select.

.no-select {
    user-select: none;
}

View live example

Usage
 Needs vendor prefixes.
Notes

Also works on mobile devices to suppress selection by touch and hold.

Related specifications
User Interface for CSS3
W3C Working Draft
See also Related articles CSS Attributes Related pages Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4