Grow your CSS skills. Land your dream job.

Internet Explorer Image Gallery Hover Issue

  • # June 17, 2012 at 8:32 pm

    Hi!

    I’ve built a website for my dad’s company using the amateur knowledge that I posses. Everything was fine (and we were all proud) until I started getting complaints. I quickly found that visitors using Internet Explorer (Safari and Firefox work just fine) were experiencing a strange issue in the Pictures section of the site.

    The problem is when the visitor hovers over the image, all of the thumbnails are pushed away instead of remaining where in their place when the larger image is displayed, causing an odd and frustrating thumbnail flickering.

    I’ve been perusing many forums as well as my CSS books in an attempt to solve this problem, but this problem seems somewhat unique and I think I’ve reached the end of my rope, thus was looking for a bit of guidance.

    The web page is http://www.henryswalltowall.com/pictures.html.

    Some of the relevant code is as follows.

    From the StyleSheet:


    div.gallery { position: relative; }

    .img_box a:link {
    font-size: 12px;
    font-family: Verdana;
    color: #3B3B3B;
    z-index: 1;
    }
    .img_box a:hover {
    font-size: 12px;
    font-family: Verdana;
    color: #00868B;
    text-decoration: none;
    position: static;
    }
    .img_box a:visited {
    font-size: 12px;
    font-family: Verdana;
    color: #3B3B3B;
    }

    .img_box span {
    display: none;
    text-decoration: none;
    }

    .img_box a:hover span {
    zoom: 1;
    display: inline;
    border: 1px solid #696969;
    background-color: #ededed;
    color: #3B3B3B;
    padding: 5px;
    position: fixed;
    bottom: 0px;
    left: 50%;
    z-index: 50;
    }

    From the page itself.

    Any help would be incredibly appreciated.

    # June 18, 2012 at 5:40 am

    The link is slightly wrong (there’s an extra full stop in there). It’s http://www.henryswalltowall.com/pictures.html

    # June 18, 2012 at 5:49 am

    I suspect that this might be an issue related to the table you have used to construct the site (which is not necessarily the most up to date way to go) AND the JS you are using to increase the size of the image.

    I appreciate that the site works in more modern browsers but it does look as though IE has a problem with it.

    # June 18, 2012 at 6:21 am

    Add a doctype to the page. You’d be surprised just how many ie funny stuff is fixed with that.

    # June 18, 2012 at 10:05 am

    I apologise for the incorrect link. Not sure how that happened.

    Yes, I realise the table-construction of the site is somewhat out of style; I’ve updated my other website to use a purely CSS layout – I simply haven’t done anything with this particular one, and I probably should.

    I added


    < !DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">

    to the top of the page and it seems to have solved the problem! Not sure if I used the correct doctype; that’s something I obviously need to read up on.

    Thanks so much for your help.

    # June 18, 2012 at 10:43 am

    Glad to be of service :)

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".