Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 212025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:08:54+00:00 2026-05-11T18:08:54+00:00

UPDATE!!! Suggested answer is NOT correct, my mistake. The #container DIV should’ve had float:left;.

  • 0

UPDATE!!!

Suggested answer is NOT correct, my mistake. The #container DIV should’ve had “float:left;”. Please verify the HTML in Firefox and IE7. You can see the difference!

I can’t get a nested DIV to display above a hierarchically higher nested DIV by using z-index… The overlay keeps laying over the lower nested DIV even though the lower nested DIV has a higher z-index… Is this even possible in IE7?

The following displays the blue #details above the green #overlay in Firefox, however in IE7 the blue #details is below the green #overlay

UPDATE2:
Pricey: Adding “z-index:99;” to the #container style makes the class .item divs appear (in Firefox, IE is messed up: anyway both don’t display correctly), while they should be under the overlay! Without the #container z-index set, it displays correctly in Firefox, but not IE….

<html>
    <body>
        <style type="text/css">
            .item {
                float:left;width:75px;height:75px;background-color:red;
            }
        </style>
        <div id="main" style="position:relative;">
            <!-- this one should overlay everything, except #details -->
            <div id="overlay" style="position:absolute;
                                     top:0px;
                                     left:0px;
                                     width:500px;
                                     height:500px;
                                     z-index:1;
                                     background-color:green;"></div>
            <div id="container" style="position:relative;float:left;">
                <!-- these ones should display UNDER the overlay: so NOT visible -->
                <div class="item"></div>
                <div class="item"></div>
                <div class="item"></div>
                <div class="item"></div>
                <div class="item"></div>
                <!-- this one should display above the overlay -->
                <div id="details" style="position:absolute;
                                         width:200px;
                                         height:200px;
                                         background-color:blue;
                                         left:400px;
                                         z-index:99;"></div>
            </div>
        </div>
    </body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T18:08:54+00:00Added an answer on May 11, 2026 at 6:08 pm

    I believe you would have to increase the z-index of #container to have this work in IE7.

    alt text http://img529.imageshack.us/img529/6416/24042958.jpg

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 103k
  • Answers 103k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer First is wrong. performSelectorInBackground:withObject: retains both bar and foo until… May 11, 2026 at 8:22 pm
  • Editorial Team
    Editorial Team added an answer The generally-preferred code for 10.5+/iOS. for (id object in array)… May 11, 2026 at 8:22 pm
  • Editorial Team
    Editorial Team added an answer Simplified goal: you need to enumerate all integer combinations that… May 11, 2026 at 8:22 pm

Related Questions

I edited the question after David Hanak's answer (thanks btw!). He helped with the
I'm on Ubuntu Intrepid, using Postfix and SpamAssassin. I've seen approaches using procmail (like
Perl's system() starts a process, but breaks the parent/child relationship? test.pl: use POSIX; system(./test.sh
I have a .NET 3.5 application that I wish to install on the client's
I have the following data : SectorKey Sector foo 1 A null 2 B

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.