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

  • Home
  • SEARCH
  • 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 6945047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:23:08+00:00 2026-05-27T13:23:08+00:00

Having difficulties with ie7 bug involving absolute positioning. Have tried a few solutions without

  • 0

Having difficulties with ie7 bug involving absolute positioning. Have tried a few solutions without luck. All the divs are supposed to be centred but as you can see in ie7, the white box divs float off to the right!

   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><html>
     <head>
      <title></title>
      <style>
    html, body { text-align: center; width: 100%; background-color: #3E5269; }
    .wrapper-gallery { position: relative; margin-left: auto; margin-right: auto; width: 1600px; overflow: hidden; top: 0px; left: 0px; min-height:1000px; height:auto !important; height:1000px; }
    .wrapper-gallery img { width: 1600px; height: 1000px; }
    .wrapper-gradient { background-image: url(images/bgd_gradient.png); background-repeat: repeat-x; background-position: left bottom; max-width: 1600px; width: 1600px; min-width: 1600px; height: 250px; position: absolute; height:250px; position:absolute; bottom:0px; left:0px; z-index: 999; }
    .wrapper { position: absolute; top: 0; width: 100%; /*visibility: hidden;*/zoom:1;}
    #pagewidth { width: 960px; margin: 0 auto; text-align: left; position: relative; zoom:1;}
    #header { width: 100%; height: 138px; position: relative;zoom:1; }

    .wrapper, #pagewidth { border: 1px solid #fff;}
    .wrapper-gradient, .wrapper-gallery { border: 1px solid #000;}
      </style>
     </head>
     <body>
       <div class="wrapper-gallery">wrapper-gallery
        <div class="wrapper-gradient">wrapper-gradient</div>
       </div>
    <!-- end .wrapper-gallery -->
       <div class="wrapper">wrapper
        <div id="pagewidth">pagewidth
         <div id="header">header
         </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-27T13:23:09+00:00Added an answer on May 27, 2026 at 1:23 pm

    I’m not 100% sure what you’re going for layout-wise, but here is my shot– I basically just moved the “wrapper” div above the “wrapper-gallery” div in the HTML, and then tweaked the z-indexes a bit. Also removed the superfluous opening tag you had in there. Hope this helps.

        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <title></title>
        <style>
            html, body
            {
                text-align: center;
                width: 100%;
                background-color: #3E5269;
            }
            .wrapper-gallery
            {
                position: relative;
                margin-left: auto;
                margin-right: auto;
                width: 1600px;
                overflow: hidden;
                top: 0px;
                left: 0px;
                min-height:1000px;
                height:auto !important;
                height:1000px;
                z-index: 0;
            }
            .wrapper-gallery img
            {
                width: 1600px;
                height: 1000px;
            }
            .wrapper-gradient
            {
                background-image: url(images/bgd_gradient.png);
                background-repeat: repeat-x;
                background-position: left bottom;
                max-width: 1600px;
                width: 1600px;
                min-width: 1600px;
                height: 250px;
                position: absolute;
                bottom:0px;
                left:0px;
                z-index: 1;
            }
            .wrapper
            {
                position: absolute;
                top: 0;
                width: 100%;
                /*visibility: hidden;*/
                zoom:1;
                z-index: 2;
            }
            #pagewidth
            {
                width: 960px;
                margin: 0 auto;
                text-align: left;
                position: relative;
                zoom:1;
            }
            #header
            {
                width: 100%;
                height: 138px;
                position: relative;
                zoom:1;
            }
    
            .wrapper, #pagewidth { border: 1px solid #fff;}
            .wrapper-gradient, .wrapper-gallery { border: 1px solid #000;}
        </style>
        </head>
        <body>
            <div class="wrapper">wrapper
                <div id="pagewidth">pagewidth
                     <div id="header">header
                     </div>
                </div>
            </div>
            <div class="wrapper-gallery">wrapper-gallery
                <div class="wrapper-gradient">wrapper-gradient</div>
            </div>
            <!-- end .wrapper-gallery -->
        </body>
        </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having difficulties with a program that I have been working on all
I am having difficulties how to construct my question, but if I have to
I'm having difficulties adding momentum to my spinning wheel. I have this wheel (something
I'm having difficulties working with some legacy enums that have multiple zero values. Whenever
i'm having difficulties implementing custom widget rendering in a QListView . I currently have
I'm having huge difficulties in removing the gap between list items in IE7 .
I'm having difficulties updating RubyGems from version 1.1.1 to newest. I've tried the following:
I have been having difficulties with a piece of script I am creating, and
I am having difficulties with properly translating the sfGuardAuth signin form without breaking it
I am having difficulties with pages that have more than one <audio> when I

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.