Dave's Brain

Browse - programming tips - ie transparency

Date: 2007nov14
Keywords: IE, alpha

Q. How do I do transparency in Microsoft Internet Explorer?

A.
You'll find lots of pages that say you need to specify
the transparency two ways in your CSS:

    filter:alpha(opacity=85); /* for IE */
    opacity: .85; /* Regular CSS */

But I have found from experimentation that IE also requires
a width or height in the CSS.  For example:

    filter:alpha(opacity=85); /* for IE */
    opacity: .85; /* Regular CSS */
    width: 100px;

It makes no sense but that's the way.
Even in IE7.
What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2010, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.