tags:

views:

30

answers:

3

Are these for cross browser reasons?

Hoping someone can explain them to me:

opacity:.50;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
filter:alpha(opacity=50)
A: 

Different companies using their own implementation in their browser. CSS3 officially recognizes the 'opacity' property.

Pablo
+1  A: 

It is for cross-browser compatibility. Take a look over here and here for an explanation.

This is for IE:

-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
filter:alpha(opacity=50)

This will work in pretty much everything else:

opacity:.50;
Buggabill
A: 

Firefox, IE, other browsers require different CSS entries to render alpha blending.

inked