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;
}

  

 

 

 

back to top