Difference between revisions of "CSS GUIDE -MOZ-OPACITY"
(→Usage) |
(→Syntax) |
||
Line 27: | Line 27: | ||
Valid range of values for -moz.opacity is from 0 to 1, where lesser equates to more transparency. | Valid range of values for -moz.opacity is from 0 to 1, where lesser equates to more transparency. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Usage == | == Usage == |
Revision as of 19:15, 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 to | all elements |
Inherited: | No |
Syntax
Opacity:1.0 shows you all of the image; Without any filters applied the opacity of an image is 1.0 (fully opaque).
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
Notes
The World Wide Web Consortium (W3C) provides a free online CSS validation service.
Browser Compatibility
- Internet Explorer
- Firefox
- Opera