Solved

CSS lightbox opacity IE7 not working

Posted on 2007-03-22
1
3,223 Views
Last Modified: 2012-06-27
When visitor will arrive on website for first time, they will see a lightbox like
http://www.huddletogether.com/projects/lightbox2/
who show an help webpage and not only picture.

It works on FF, IE 6, Safari but not IE7, on IE7 opacity become 100%, the background is plain color and hide then website behind. I found some article speaking about:
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader but it didn't works for me.

Here is my current css. Any idea on how to include the filter: progid:DXImageTransform.Microsoft.AlphaImageLoader to make this code working on IE7?

#overlay{
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 90;
    width: 100%;
    height: 100%;

      background-color:#333333;
      -moz-opacity:.50;
      opacity:.50;
}

* html #overlay{
      background-color:#333333;
      filter:alpha(opacity=50);
}
0
Comment
Question by:mammouth
1 Comment
 
LVL 15

Accepted Solution

by:
stanscott2 earned 125 total points
ID: 18774985
You don't include the filter in your stylesheet.  Instead, you need to place it inside a DIV on your HTML, like this:

<DIV ID="oDiv" STYLE="position:absolute; left:140px; height:400; width:400;
     filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(
     src='image.png', sizingMethod='scale');" >
</DIV>

replacing 'image.png' with your own image.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question