IE6 Negative Margin Bug -- Frustrated, Need Help

Discussion in 'CSS' started by thrillseeker30, Jul 2, 2008.

  1. #1
    Hey guys, I'm having a problem of having three images on a site I am building being displayed. IE6 is clipping the images because part of each is positioned outside it's containing div. Check out the web site and view the code to understand what I am meaning....http://www.tailored.previsuals.com/test.html
     
    thrillseeker30, Jul 2, 2008 IP
  2. Rubenator

    Rubenator Peon

    Messages:
    40
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Link not working, probably because server is down (according to siteuptime's report.)
     
    Rubenator, Jul 2, 2008 IP
  3. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #3
    Remove "www." from url.

    Add {position: relative;} to the items with negative margins.

    cheers,

    gary
     
    kk5st, Jul 3, 2008 IP
  4. thrillseeker30

    thrillseeker30 Guest

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thrillseeker30, Jul 3, 2008 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #5
    Don't just tell it doesn't work, show us.
    #photos {style.css (line 100)
    background:transparent url(images/photos.png) no-repeat scroll 0%;
    float:left;
    height:210px;
    margin:-10px 0pt 0pt -23px;
    width:181px;
    }
    Code (markup):
    Where is the {position: relative;}?

    gary
     
    kk5st, Jul 3, 2008 IP
  6. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #6
    That, and make sure there isn't an overflow:hidden on the container the image is in (though if it works in other browsers, that wouldn't be the problem in this case)
     
    rochow, Jul 4, 2008 IP
  7. thrillseeker30

    thrillseeker30 Guest

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Ok, If you look now, position:relative has been added to the elements displaying the images partially still.....I'm wondering now if I need to put position relative to the containing elements for each image too or instead of.
     
    thrillseeker30, Jul 5, 2008 IP
  8. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #8
    You put it on the image itself
     
    rochow, Jul 5, 2008 IP
  9. thrillseeker30

    thrillseeker30 Guest

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Ok, well I wonder if it is because of the type of PNG filter I used that is causing the problem.
     
    thrillseeker30, Jul 7, 2008 IP