Difference between revisions of "CSS GUIDE -MOZ-OPACITY"
(→Summary) |
(→Syntax) |
||
Line 18: | Line 18: | ||
== Syntax == | == Syntax == | ||
− | + | We use CSS to define the initial degree of opacity in Firefox: | |
+ | |||
<pre> | <pre> | ||
− | + | <IMG style="-moz-opacity:0.5" src="test.gif"> | |
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
+ | |||
+ | Valid range of values for -moz.opacity is from 0 to 1, where lesser equates to more transparency. | ||
== Legal Values == | == Legal Values == |
Revision as of 17:57, 14 December 2006
This document is a work in progress and is subject to change.
Contents
Summary
- Firefox allows you to use coding to manipulate the opacity of an image.
- "Opacity" refers to transparency; the lesser the opacity of an image, the more transparent it is.
Applicability: | The background-repeat property can be used for all CSS elements. |
Media Group: | Visual |
Inherited: | No |
Syntax
We use CSS to define the initial degree of opacity in Firefox:
<IMG style="-moz-opacity:0.5" src="test.gif">
Valid range of values for -moz.opacity is from 0 to 1, where lesser equates to more transparency.
Legal Values
The following units are valid for defining background-repeat:
- repeat
- The image is repeated both horizontally and vertically.
- repeat-x
- The image is repeated horizontally only.
- repeat-y
- The image is repeated vertically only.
- no-repeat
- The image is not repeated: only one copy of the image is drawn.
Mozilla Recommended Values
MDC document on background-repeat
Notes
The World Wide Web Consortium (W3C) provides a free online CSS validation service.
Specification Conformance
Browser Compatibility
- Internet Explorer
- Firefox
- Opera