Results 1 to 3 of 3

Thread: IE positioning bug in the Image Thumbnail Viewer II

  1. #1
    Join Date
    Apr 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default IE positioning bug in the Image Thumbnail Viewer II

    http://www.dynamicdrive.com/dynamici...thumbnail2.htm

    Hello again, I have yet another question about the Image Thumbnail Viewer II.

    I'll eventually have this gallery all over my site, but I figured I should get the bugs out on a single page first.

    http://www.inverse-concepts.com/photos.php

    It works fine in Mozilla / FireFox.
    But when I load it up in IE and click on a thumbnail. It loads up in the frame just fine, but it moves all the icons down. Taking it outside of the boundries of where it should be. (Ignoring my overflow:hidden in my CSS file...)

    Help please! And thanks to you people who have answered my previous posts.
    Last edited by ddadmin; 04-15-2005 at 08:44 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    overflow:hidden

    Apply it to the dynloadarea not the content area which includes the thumbs.

    overflow:none

    might be better

    If that's no good try changing this:
    Code:
    <div id="dynloadarea" style="width:296px; height:152px; left: 0px; top: 0px; padding-top: 0px;"></div>
    <div id="thumbs" style="width:195px; position: relative; top: -152px; left: 355px;">
    to this:
    Code:
    <div id="dynloadarea" style="width:296px; height:152px; left: 0px; top: 0px; padding-top: 0px;display:inline"></div>
    <div id="thumbs" style="width:195px; position: absolute; display:inline;">
    You might need to throw a <br> or two in there someplace to get any needed line-breaks into the display.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    There are several ways to fix this, though the problem is inherantly due to the way your two DIV tags are set up, and not a bug with the script per say:

    Code:
    <div id="dynloadarea" style="width:296px; height:152px; left: 0px; top: 0px; padding-top: 0px;"></div>
    <div id="thumbs" style="width:195px; position: relative; top: -152px; left: 355px;">
    "
    "
    </div>
    Firstly, I'd take out the "left: 0; top:0" attributes in the first DIV tag, and the "position: relative; top: -152px; left: 355px" attributes in the second- they don't contribute anything to the layout. From what I can tell you're trying to display the two DIVs in a side by side manner. One way would be:

    Code:
    <div style="width: 500px">
    
    <div id="dynloadarea" style="width:296px; height:152px; float: left"></div>
    
    <div id="thumbs" style="float: right; width:195px;">
    "
    "
    </div>
    
    </div>
    There are many ways to do multi columns layouts in CSS. If you're not familiar with this, you may want to simply resort to table cells, and put the first div in the left cell, and 2nd div in the right cell.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •