Advertisement

12.18.2007 at 06:04AM PST, ID: 23030554
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.2

Issue with IE and overlapping images using z-index

Asked by fusioninternet in Cascading Style Sheets (CSS), Internet Explorer Web Browser

Tags: ,

I am having an issue with IE with overlapping images on the following page http://www.swlg.net/competition.aspx

If you view in IE you notice that when you hover over the pictures they underlap the images immediately to the right, if you view in IE6 the same problem occurs but it underlaps the drop down list also.

The css for the popup is as follows:
body {
}
/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */

.gallerycontainer{
position: relative;
float:left;
padding-bottom:10px;
z-index: 0;
/*Add a height attribute and set to largest image's height to prevent overlaying*/
}


.thumbnail{
position: relative;

}

.thumbnail img{
margin: 0px;
}

.thumbnail:hover{
background-color: transparent;
}

.thumbnail:hover img{
      background-color: transparent;
      z-index: 50;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: #E8E3DE;
left: -1000px;
visibility: hidden;
color: black;
text-decoration: none;
}

.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
}

.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
top: -100px;
left: 0px; /*position where enlarged image should offset horizontally */

}

HTML (example of two images shown, more are on the page)

<div class="gallerycontainer">
    <a class='thumbnail' style='text-decoration:none;color: #6B6E70' href='#thumb'> <img src="images/xmas2007/kids/1.png" width="100" height="100" /><span><img src="images/xmas2007/kids/1.png" width="200" height="200" /> </span></a>
        <br />
        <asp:DropDownList ID="DropDownList1" runat="server" CssClass="competitiondropdown" >
            <asp:ListItem>Please select</asp:ListItem>
            <asp:ListItem>Carl Day</asp:ListItem>
            <asp:ListItem>Chris Woods</asp:ListItem>
            <asp:ListItem>Mary Cotterell</asp:ListItem>
            <asp:ListItem>Val</asp:ListItem>
            <asp:ListItem>Martyn Gregory</asp:ListItem>
            <asp:ListItem>Heidi Seaman</asp:ListItem>
            <asp:ListItem>Andy Gordon</asp:ListItem>
            <asp:ListItem>Justin Cushing</asp:ListItem>
            <asp:ListItem>Debbie Lambert</asp:ListItem>
            <asp:ListItem>Emma Wright</asp:ListItem>
            <asp:ListItem>Chris Farr</asp:ListItem>
            <asp:ListItem>Debbie Hartles</asp:ListItem>
            <asp:ListItem>Paul Osbourne</asp:ListItem>
            <asp:ListItem>Sharon Browne</asp:ListItem>
            <asp:ListItem>Colin Campbell</asp:ListItem>
            <asp:ListItem>Danny Jackaman</asp:ListItem>
         </asp:DropDownList>
</div>

<div class="gallerycontainer">
    <a class='thumbnail' style='text-decoration:none;color: #6B6E70' href='#thumb'> <img src="images/xmas2007/kids/2.png" width="100" height="100" /><span><img src="images/xmas2007/kids/2.png" width="200" height="200" /> </span></a>
        <br />
        <asp:DropDownList ID="DropDownList2" runat="server" CssClass="competitiondropdown" >
            <asp:ListItem>Please select</asp:ListItem>
            <asp:ListItem>Carl Day</asp:ListItem>
            <asp:ListItem>Chris Woods</asp:ListItem>
            <asp:ListItem>Mary Cotterell</asp:ListItem>
            <asp:ListItem>Val</asp:ListItem>
            <asp:ListItem>Martyn Gregory</asp:ListItem>
            <asp:ListItem>Heidi Seaman</asp:ListItem>
            <asp:ListItem>Andy Gordon</asp:ListItem>
            <asp:ListItem>Justin Cushing</asp:ListItem>
            <asp:ListItem>Debbie Lambert</asp:ListItem>
            <asp:ListItem>Emma Wright</asp:ListItem>
            <asp:ListItem>Chris Farr</asp:ListItem>
            <asp:ListItem>Debbie Hartles</asp:ListItem>
            <asp:ListItem>Paul Osbourne</asp:ListItem>
            <asp:ListItem>Sharon Browne</asp:ListItem>
            <asp:ListItem>Colin Campbell</asp:ListItem>
            <asp:ListItem>Danny Jackaman</asp:ListItem>
         </asp:DropDownList>
</div>

The page displays correctly in Firefox and Safari, just not IE 6 or 7 so any help would be greatly appreciated

Regards

JustinStart Free Trial
[+][-]12.18.2007 at 08:50AM PST, ID: 20493479

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.18.2007 at 08:50AM PST, ID: 20493484

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Cascading Style Sheets (CSS), Internet Explorer Web Browser
Tags: css, overlapping
Sign Up Now!
Solution Provided By: Eternal_Student
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628