Changes

Jump to: navigation, search

CSS GUIDE -MOZ-USER-MODIFY

559 bytes added, 00:41, 14 December 2006
Summary
== Summary ==
'''-moz-user-modify''' is a Mozilla property extension to CSS that is used to determine whether or not an element may be modified, and, in certain circumstances, whether or not the content itself is viewable.
'''Media:''' interactive Possible uses include: *update forms which should prohibit modification of certain content, but wish to utilize the same look-and-feel as the input form (for example, textbox usage).*template pages
== Syntax ==
<pre>
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;}
</pre>
== Legal Values ==
<table border="1" cellpadding="3">
<tr><th>Value</th><th>Description</th></tr>
<tr><td>inherit</td><td>Inherit the value from parent element.</td></tr>
<tr><td>read-only</td><td>Allow for viewing, selecting and copying the element contents.'''This has been tested in FF2.0 and doesn't work.'''</td></tr>
<tr><td>read-write</td><td>Allow for viewing, selecting, copying and editing the element contents.</td></tr>
<tr><td>write-only</td><td>Allow for selecting and editing the element contents.</td></tr>
== Usage Examples ==
This sample code provides a textbox which allows the user to type and modify content, but does not allow for the cut, copy and paste facilities: <pre>asdf <form method="post" action="foo"> </prespan style="-moz-user-modify:write-only;"> <preinput type="text" name="tb1" value="qwerty" />asdf </prespan><pre/form>asdf </pre>
== Notes ==
1
edit

Navigation menu