Forum Moderators: not2easy
a:link, a:visited, a:focus, a:active {color: #9999ff; font-style: italic; text-decoration: underline; filter:alpha(opacity=72%); -moz-opacity: 0.72;} a:hover {position: relative; top: 2px; left: 2px; filter:alpha(opacity=100%); -moz-opacity: 1.0;} It works in Mozilla, but won't work in IE. Am I doing something wrong, or does IE just suck?
That had the added bonus of working in opera as well as mozilla and got the proprietary junk and ie hacks out of my stylesheet. One problem that I ran into is that ie requires "layout" to be set to use the filter. So basically, the object that you apply the filter to needs to be absolutely positioned or have an explicit height or width for it to work. Be sure to put that declaration in front of the filter declaration in the conditional comment.
Adam
Safari already supports the CSS3 property: background-color: rgba(red,green,blue,alpha);
Some impressive examples here [web-graphics.com]
"Alpha" works in the current IE but probably not the next one (if there ever is a new version) because it's now deprecated. The new M$ command will work in the latest and the next version of IE. Neither will ever work in non-IE browers.
The 'moz-' commands will only work in Mozilla and related browsers (ie. never in IE, Safari, etc.). They will be deprecated when Mozilla starts supporting CSS3.
OTOH it is almost certain that the next round of browsers will support CSS3 attributes such as text-shadow, rgba(), etc. So my advice is to go for that and let people be surprised when they upgrade.
If we want the browsers to follow standards, then we should as well ;)
I am actually quit worried by browsers like Safari introducing more proprietary code like this. And yes it is proprietary becasue it is not yet included in any standard, CSS3 is not at that stage yet. What happens if it dissapears from the final standard like some things have done before? We will be stuck with yet more browser specific code out there to cause neat effects.
If you really must use these then make absolutely sure that the degrade properly.