Changes

Jump to: navigation, search

CSS GUIDE -MOZ-OPACITY

797 bytes added, 19:09, 14 December 2006
Syntax
== 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:
Valid range of values for -moz.opacity is from 0 to 1, where lesser equates to more transparency.
 
For CSS opacity to work in the browser it must have some placement specified. We used float:left; and that worked. Now we are trying position:relative; and that works too, but only in Mozilla Firefox. The float:left CSS style works in both Internet Explorer and Mozilla Firefox. Surely the explanation from W3C makes sense but basically this was trial and error, mostly error to get the transparency opacity to apply to text. The opacity code for simply displaying an image is more straightforward.
 
<pre>
<span style="float:left;filter:alpha(opacity=25);-moz-opacity:.25;opacity:.25;"><img src="http://www.mandarindesign.com/images/v90.gif" width="50" height="50"></span>
</pre>
== Usage ==
1
edit

Navigation menu