Solved

CSS lightbox opacity IE7 not working

Posted on 2007-03-22
1
3,218 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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
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 …

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now