mozilla

Revision 48517 of user-select

  • Revision slug: CSS/user-select
  • Revision title: user-select
  • Revision id: 48517
  • Created:
  • Creator: Jürgen Jeka
  • Is current revision? No
  • Comment 1 words added, 7 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. A similar property 'user-select' has been proposed for CSS3.

  • none: The text of the element and sub-elements cannot be selected.
  • text: The text can be selected by the user. use the same layout as the other CSS reference pages
  • -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 occured 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. A similar property 'user-select' has been proposed for CSS3.</p>
<ul> <li>none: The text of the element and sub-elements cannot be selected.</li> <li>text: The text can be selected by the user. <span class="comment">use the same layout as the other CSS reference pages</span></li> <li>-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</li> <li>all: In html editor, if double-click or context-click occured in sub-elements, the highest ancestor with this value will be selected.</li>
</ul>
<p>
 </p><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>
Revert to this revision