HTML Transparent (opacity)

By BXTra |

I've tried to work on transparent CSS. I put all 3 types of opacity setting below :

filter: alpha(opacity='70');
-moz-opacity: 0.7;
opacity: 0.7

With opacity setting, it works fine with Firefox. However, I couldn't make the same code to work with IE 6 and 7. Then, I searched online and found the following page -> http://labs.adobe.com/wiki/index.php/Talk:Spry#Spry.Effects.Opacity

I just followed what they suggested which is to put width and height as below :

style="opacity: 0.5; width: 100%; height: 100%; filter:alpha(opacity=50);"

Then, the transparent came to work as it should be on IE.

Add new comment

  • No HTML tags allowed.
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.