i found the following code...
filter: alpha(opacity=50); filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50); -moz-opacity: 50%;
...that will control a layer's opacity, but... it only works in...
IE on Microsoft Windows Mozilla on Microsoft Windows Mozilla on Mac OS
is anyone aware of some better (more) CSS code that will control this for all browsers? or even a better way of doing layer opacity?
-wade
As Stuart said, opacity is a feature of CSS3 (which I did not know until now, thanks for the heads up); or more particularly, opacity/transparency is *not* a feature of CSS1 or 2 (which I did know). Most browsers are still working on support for CSS2 (the gecko engine is there I think, or almost if not), so as Stuart said, don't expect widespread CSS3 support anytime soon (although it will be nice when it happens). Any existing methods to generate layer opacity is purely rendering engine specific and will not (generally) be cross-compatible. Once more to agree with Stuart, include all three versions (I'm guessing the first one "filter: alpha(opacity=50%);" is CSS3) for the benefit of those who do have this capability, but remember to comment the browser specific lines as such and don't depend on the functionality (eg. if I'm using Mozilla on linux, it won't be as cool, but I can still navigate and use the site).
FWIW,
Jacob
____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
