Wednesday, 15 August 2012

Previous Interview Question Next Interview Question
Home

CSS "Opacity" cross browsers Issue resolving


opacity property in css will not support for all the browsers

For IE8
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)"
for IE7
filter:alpha(opacity=20);
For old Mozilla
-moz-opacity:0.2;
For all the latest browsers
opacity:0.2;
Example :
.opacityDiff{
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)"; /* for IE8 */
filter:alpha(opacity=20); /* for IE7 */
-moz-opacity:0.2; /* Old Mozilla */
-khtml-opacity: 0.2;  /* Safari 1 */
opacity:0.2;  /* New Browsers and IE9  */
}

Previous Interview Question Next Interview Question
Home

0 comments :

Post a Comment