Published in: CSS
Sets the opacity of an element and its children. Doesn't validate. Mozilla began supporting the opacity rule in version 1.7, so '-moz-opacity' may not be necessary...
selector { filter: alpha(opacity=60); /* MSIE/PC */ -moz-opacity: 0.6; /* Mozilla 1.6 and older */ opacity: 0.6; }
Comments
Subscribe to comments
You need to login to post a comment.

As a note, I believe, Gecko 1.7 was implemented in Firefox 1.5.
Firefox 1.5 uses gecko 1.8 Firefox 1.0 uses gecko 1.7 So anything older then firefox 1.0 does not support opacity
Hi, In general I like the Idea of snippets, no doubt about that! But I would love to see some kind of standardilzation of them, preferable in a combination of XML, XSD (schema). You could then transform your XML snippet to what ever purpose you would need it in - say a HTML context. You can validate the input to the snippet using XSD. And some clever programmer might create add-ins for say MS Visual Studio 2008 or other commenly used development tools.
Here is my first thoughts about how it could be put together - based on this snippet for opacity:
Sorry the system didn't like me pasting XML into the comment field... I try again: Hi, In general I like the Idea of snippets, no doubt about that! But I would love to see some kind of standardilzation of them, preferable in a combination of XML, XSD (schema). You could then transform your XML snippet to what ever purpose you would need it in - say a HTML context. You can validate the input to the snippet using XSD. And some clever programmer might create add-ins for say MS Visual Studio 2008 or other commenly used development tools. Here is my first thoughts about how it could be put together - based on this snippet for opacity: Opacity hack 1.0 CSS { filter: alpha(opacity=); / MSIE/PC / -moz-opacity: ; / Mozilla 1.6 and older / opacity: ; }
Sorry - I simply couldnt make my comment containing XML example. So I wrote an article on my blog: http://netsi1964.blogspot.com/ - feel free to read it :-)
This method does not validate but surely works.. cool with hovers.
To make CSS validate, it is better to set Opacity from JS for older browsers.
take a look at china jewelry to choose a fashion jewelry or open your handmade jewelry busibness
auto insurance for young drivers
i use jquery $(selector).css('opacity','.6')
yeah, but this has the same effect. it triggers the css in the described way, so why not just use css? :)
If you are a student in school, or you want to enter the IT industry, passing 640-553 Cisco hp0-s18 VCP-310 352-001 350-029 jn0-400 642-566 642-426 exam and obtaining Microsoft certification at least shows that you are really making your efforts and have acquired the knowledge and skills in this field.Pass4sure JN0-342 jn0-350 1z0-146 650-393 650-621 ec0-350 646-230 646-588 646-563 642-661 will help you lead your competitors, 640-863 642-105 642-164 642-373 642-415 642-453 640-721 350-001 220-601 help you win an opportunity.