Difference between revisions of "CSS GUIDE -MOZ-USER-SELECT"

From CDOT Wiki
Jump to: navigation, search
 
(See Also)
Line 44: Line 44:
 
[[CSS_GUIDE_-MOZ-USER-FOCUS|-moz-user-focus]]
 
[[CSS_GUIDE_-MOZ-USER-FOCUS|-moz-user-focus]]
 
<br>[[CSS_GUIDE_-MOZ-USER-INPUT|-moz-user-input]]
 
<br>[[CSS_GUIDE_-MOZ-USER-INPUT|-moz-user-input]]
<br>[[CSS_GUIDE_-MOZ-USER-modify|-moz-user-modify]]
+
<br>[[CSS_GUIDE_-MOZ-USER-MODIFY|-moz-user-modify]]
  
 
== References ==
 
== References ==

Revision as of 23:05, 13 December 2006

Summary

-moz-user-select is a Mozilla property extension to CSS that is used to determine whether or not an element may have its content selected.

Media: interactive

Possible uses include: prohibiting the selection of content in attempts to reduce blatant copying.

Syntax

<!-- TARGET_ELEMENT{-moz-user-modify: inherit;}
TARGET_ELEMENT{-moz-user-modify: read-only;}
TARGET_ELEMENT{-moz-user-modify: read-write;}
TARGET_ELEMENT{-moz-user-modify: write-only;} -->

Legal Values

ValueDescription
inheritInherit the value from the parent element.
noneNone of the content may be selected.
textOnly the text within the element may be selected.
elementA single element may be selected (from many).
elementsMultiple elements may be selected.
allThe contents must either be selected in entirety or none at all.
toggle
tri-state
-moz-all

Usage Examples

Notes

This property is similar to the user-select property of CSS3.

Specification Conformance

Doesn't conform to CSS standards; A Mozilla CSS Extension.

Browser Compatibility

Netscape 6+
Mozilla 0.6+
Firefox 1.0+

See Also

-moz-user-focus
-moz-user-input
-moz-user-modify

References

Mozilla Developer Centre - CSS Reference - Mozilla Extensions (developer.mozilla.org)
Netscape CSS Extensions (blooberry.com)
User Interface for CSS3 (w3.org)