Revision 48518 of user-select

  • Revision slug: CSS/user-select
  • Revision title: user-select
  • Revision id: 48518
  • Created:
  • Creator: Jürgen Jeka
  • Is current revision? No
  • Comment 3 words added, 29 words removed

Revision Content

Used to indicate whether the text of the element can be selected. This doesn't have any effect on content loaded as chrome, except in textboxes.

none
The text of the element and sub-elements cannot be selected.
text
The text can be selected by the user.
-moz-none
The text of the element and sub-elements cannot be selected, but selection can be enabled on sub-elements using -moz-user-select:text .
all
In HTML editor, if double-click or context-click occurred in sub-elements, the highest ancestor with this value will be selected.

See also

::-moz-selection, {{ Cssxref("::selection") }}

 

Revision Source

<p>Used to indicate whether the text of the element can be selected. This doesn't have any effect on content loaded as chrome, except in textboxes.</p>
<dl><dt>none</dt><dd> The text of the element and sub-elements cannot be selected. </dd><dt>text</dt><dd> The text can be selected by the user. </dd><dt>-moz-none</dt><dd> The text of the element and sub-elements cannot be selected, but selection can be enabled on sub-elements using<code> -moz-user-select:text </code>.</dd><dt>all</dt><dd> In HTML editor, if double-click or context-click occurred in sub-elements, the highest ancestor with this value will be selected.</dd></dl>
<h3 name="See_also">See also</h3>
<p><a class="internal" href="/En/CSS/::selection" title="En/CSS/::selection"><code>::-moz-selection</code></a>, {{ Cssxref("::selection") }}</p>
<p> </p>
Revert to this revision