XML technologies / CSS / Advanced websites with CSS / CSS property reference / -moz-opacity
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
Mozilla-based browsers, including Netscape 6 and later, support a range of nonstandard CSS properties. These begin with the prefix -moz. Several of these properties are mentioned in current recommendations for future CSS standards.
The property –moz-opacity describes an element’s transparency.
Inherited: no
See also: filter
Values
Opacity is specified as a decimal value between 0.0 (fully transparent) and 1.0 (fully opaque).
Default value: 1.0
Compatibility
CSS version: not part of the CSS specification
Works only in Mozilla-based browsers, including Netscape 6 and later.
Corresponding functionality is planned for CSS3, although the final property and value names will probably differ. Current information is available on the CSS Working Group website.
Example
The following rule displays the element with the ID seitenleiste at 50% transparency:
#seitenleiste {
-moz-opacity: 0.5;
}
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg