Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
.transparent
{
filter:alpha(opacity=45);
-moz-opacity: 0.45;
opacity: 0.45;
}
What exactly is this and what are the benefits for implementing this type of browser?
Transparency is one of those CSS properties that has a weird history and requires lots of different properties and values to ensure cross browser compatibilit. /* This works in IE */ filter: alpha(opacity=50); /* Older than Firefox 0.9 */ -moz-opacity:0.5; /* Safari 1.x (pre WebKit!) */ -khtml-opacity: 0.5; /* Modern! /* Firefox 0.9+, Safari 2?, Chrome any? /* Opera 9+, IE 9+ */ opacity: 0.5;
What exactly is this and what are the benefits for implementing this type of browser?
ReplyDeleteTransparency is one of those CSS properties that has a weird history and requires lots of different properties and values to ensure cross browser compatibilit.
ReplyDelete/* This works in IE */
filter: alpha(opacity=50);
/* Older than Firefox 0.9 */
-moz-opacity:0.5;
/* Safari 1.x (pre WebKit!) */
-khtml-opacity: 0.5;
/* Modern!
/* Firefox 0.9+, Safari 2?, Chrome any?
/* Opera 9+, IE 9+ */
opacity: 0.5;