Difference between revisions of "CSS GUIDE -MOZ-OPACITY"

From CDOT Wiki
Jump to: navigation, search
(Specification Conformance)
(Summary)
Line 6: Line 6:
 
<table border="0">
 
<table border="0">
 
<tr>
 
<tr>
<td><b>Applicability:</b></td><td>The background-repeat property can be used for all CSS elements.</td>
+
<td><b>Initial Value:</b></td><td>1(opaque)</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td><b>[http://developer.mozilla.org/en/docs/CSS:%40media#Media_groups Media Group:]</b>
+
<td><b>Applies  to</b></td><td>all elements</td>
</td><td>Visual</td>
 
 
</tr>
 
</tr>
 
<tr>
 
<tr>

Revision as of 18:03, 14 December 2006

This document is a work in progress and is subject to change.

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.
Initial Value:1(opaque)
Applies toall elements
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.

Usage

  • Quick opacity change onMouseover:
<IMG style="-moz-opacity:0.6" src="alta.gif" onMouseover="this.style.MozOpacity=1" onMouseout="this.style.MozOpacity=0.6">

Mozilla Recommended Values

MDC document on -moz-opacity

Notes

The World Wide Web Consortium (W3C) provides a free online CSS validation service.


Browser Compatibility

  • Internet Explorer
  • Firefox
  • Opera