0

I'm trying to use opacity in my website, but it isn't working very well in IE8. My code is as following:

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

When I change the values, the resulting output is always the same.

Edit: Thanks for give me a other question with similar problem...but I have a layout and the opacity property it's applied to layout.

Marcos
  • 241
  • 5
  • 13

2 Answers2

0

This are all the css codes for opacity:

.classname {
  /* IE 8 */
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";

  /* IE 5-7 */
  filter: alpha(opacity=80);

  /* Netscape */
  -moz-opacity: 0.8;

  /* Safari 1.x */
  -khtml-opacity: 0.8;

  /* Good browsers */
  opacity: 0.8;
}

Try to add all of these and it most likely works

Goos van den Bekerom
  • 1,475
  • 3
  • 20
  • 32
0

To support IE8+ transparency you only need the following:

.transparent {
    zoom: 1;
    filter: alpha(opacity=50);
    opacity: 0.5;
}

http://css-tricks.com/css-transparency-settings-for-all-broswers/

Jason
  • 4,079
  • 4
  • 22
  • 32