Programming Tips - How do I do transparency in Microsoft Internet Explorer?

Date: 2007nov14 Keywords: IE, alpha Platform: web Warning: About an old version 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.