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 8059499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:41:19+00:00 2026-06-05T09:41:19+00:00

i have a page with some boxes positioned with absolute positions. works perfectly in

  • 0

i have a page with some boxes positioned with absolute positions. works perfectly in IE8 and IE9, but IE7 comes out completely wonky.

here is the relevant HTML:

          <div id="thumbHolder">

            <div class="thumb upper"><a href="#pic1" rel="-339" title="" >
                <img src="../images/ui/telaviv1.jpg" alt="Jaffa" border="0" />
                <div class="caption"></div>
                <div class="captionText">Jaffa</div>
                <div class="rolloverText">
                <strong>Jaffa</strong><br />

    Visit the ancient
    port city, its artist colony
    and markets
                </div>
                </a>
            </div>

            <div class="thumb upper"><a href="#pic2" rel="-678" title="">
                <img src="../images/ui/telaviv2.jpg" alt="Neve Tzedek" border="0" />
                <div class="caption"></div>
                <div class="captionText">Neve Tzedek</div>
                 <div class="rolloverText">
               <strong> Neve Tzedek</strong><br />

    Explore the charming and
    fashionable neighborhood,
    the first to be built outside
    of Jaffa
                </div>
                </a>
            </div>

            <div class="thumb upper right"><a href="#pic3" rel="-1017" title="">
                <img src="../images/ui/telaviv3.jpg" alt="The White City" border="0" />
                <div class="caption"></div>
                <div class="captionText">The White City</div>
                 <div class="rolloverText">
               <strong> The White City</strong><br />

    Accredited a UNESCO
    world heritage site for
    its Bauhaus architecture
                </div>
                </a>
            </div>

            <div class="thumb"><a href="#pic4" rel="-1356" title="Messa Restaurant">
                <img src="../images/ui/telaviv4.jpg" alt="Restaurants" border="0" />
                <div class="caption"></div>
                <div class="captionText">Restaurants</div>
                 <div class="rolloverText">
                <strong>Restaurants</strong><br />

    Enjoy the finest
    restaurants, bars and clubs
    Israel has to offer

                </div>
                </a>
            </div>

            <div class="thumb"><a href="#pic5" rel="-1356" title="Menashe Kadishman’s Studio">
                <img src="../images/ui/telaviv5.jpg" alt="Art" border="0" />
                <div class="caption"></div>
                <div class="captionText">Art</div>
                 <div class="rolloverText">
                <strong>Art</strong><br />

    Explore art Galleries
    and meet with Israel’s
    top artists
                </div>
                </a>
            </div>



            <div class="thumb"><a href="#pic6" rel="-1356" title="Habima - National Theatre">
                <img src="../images/ui/telaviv6.jpg" alt="Culture" border="0" />
                <div class="caption"></div>
                <div class="captionText">Culture</div>
                 <div class="rolloverText">
                <strong>Culture</strong><br />

    Enjoy live performances
    and concerts

                </div>
                </a>
            </div>


        </div>

and here is the CSS:

            #thumbHolder {width: 559px; overflow:hidden; position: relative; margin-bottom: 15px;}
    .thumb {float:left; width: 174px; margin-right: 18px;}
    .thumb a {text-decoration: none;}
    .caption { background: #000;    zoom: 1;
        filter: alpha(opacity=50);
        opacity: 0.5;
        padding: 4px;

        position: absolute;
        width: 166px; margin-top: -24px;    height:15px;}
    .captionText { 
        color:#FFF; position: absolute; padding:4px; width: 166px;  margin-top: -23px;  height:15px; text-align:center; font-weight: bold;}

    .rolloverText {background: #000;
        color: #FFF;
        padding: 6px;
        margin-top: -88px;
        height: 74px;
        position: absolute;
        width: 162px;
        line-height: 125%;
        display: none;
        font-size: 95%;}
    .upper {margin-bottom: 15px;}
    .right {margin-right: 0;}

here is a link to the actual page: http://bit.ly/L47Qka (please dont revert this link to the actual destination link, for indexing purposes)

when you compare IE8 and IE9 to IE7 – you will see that the captions of the thumbnails is completely off, and the same way – the black boxes appearing on-click (on the live page).

many thanks!

  • 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-06-05T09:41:21+00:00Added an answer on June 5, 2026 at 9:41 am

    I took at shot at this quickly, but this should be enough to get you on track. My example below was tested in IE6+, Firefox, and Chrome.

    A couple notes: I used divs with background colors and outlines along with test content, but all the sizing is the same as your example. I turned one of the overlays “on” by default and hid the others by default so you can see both the toggled and base states. You’ll need to re-add your Javascript, this is just so you can see how the positioning works.

    At first glance, I think your problem was the use of absolutely positioned divs without a relatively positioned container. Also, some negative margins seemed to be throwing things off as well with the “caption” and “caption-text” divs.

    CSS:

    body{
        margin:0;
        padding:0;
    }
    
    #wrapper{
        width:559px;
        height:400px;
        position:relative;
    }
    
    .thumb-wrapper{
        border:1px solid red;
        float:left;
    }
    
    .col1, .col2{
        margin-right:15px;
    }
    
    .row1{
        margin-bottom:15px;
    }
    
    .thumb-inner{
        width:174px;
        height:86px;
        position:relative;
    }
    
    .caption-wrapper{
        position:absolute;
        bottom:0;
        height:15px;
        width:100%;
        text-align:center;
        padding-bottom:4px;
        background-color:#000;
        color:#fff;
    }
    
    .rollover-text{
        position:absolute;
        top:0;
        width:100%;
        height:100%;
        background-color:#000;
        color:#fff;
        display:none;
    }
    

    HTML

    <div id="wrapper">
        <div class="thumb-wrapper row1 col1" >
            <div class="thumb-inner" >
                <div class="caption-wrapper">
                    Test
                </div>
                <div class="rollover-text" style="display:block;">
                    <strong>Test</strong><br>
                    Test test test
                </div>
            </div>
        </div>
        <div class="thumb-wrapper row1 col2" >
            <div class="thumb-inner" >
                <div class="caption-wrapper">
                    Test
                </div>
                <div class="rollover-text" >
                    <strong>Test</strong><br>
                    Test test test
                </div>
            </div>
        </div>
        <div class="thumb-wrapper row1 col3" >
            <div class="thumb-inner" >
                <div class="caption-wrapper">
                    Test
                </div>
                <div class="rollover-text" >
                    <strong>Test</strong><br>
                    Test test test
                </div>
            </div>
        </div>
        <div class="thumb-wrapper row2 col1" >
            <div class="thumb-inner" >
                <div class="caption-wrapper">
                    Test
                </div>
                <div class="rollover-text" >
                    <strong>Test</strong><br>
                    Test test test
                </div>
            </div>
        </div>
        <div class="thumb-wrapper row2 col2" >
            <div class="thumb-inner" >
                <div class="caption-wrapper">
                    Test
                </div>
                <div class="rollover-text" >
                    <strong>Test</strong><br>
                    Test test test
                </div>
            </div>
        </div>
        <div class="thumb-wrapper row2 col3" >
            <div class="thumb-inner" >
                <div class="caption-wrapper">
                    Test
                </div>
                <div class="rollover-text" >
                    <strong>Test</strong><br>
                    Test test test
                </div>
            </div>
        </div>
    </div>
    

    Here’s a link to the full HTML: http://pastehtml.com/view/c0n37a140.html

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

Sidebar

Related Questions

I have some drop-down boxes that act as filters on a page. When either
I have a page where some event listeners are attached to input boxes and
I have a problem in my page.I have some combo boxes in it.In other
I have a html page with a form that has some check boxes. I
I have a page page1.php (lets say) and there are some text area boxes
I have a page in my WP7 which contains some text boxes. When pressing
My home page works fine in all browsers but IE9 where part of the
I have to build a page which contains some text boxes and a grid
I have a page with some very basic examples that use HTML/CSS/JavaScript. I'd like
I have a page with some user selectable options and a button that, when

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.