Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Member
    Join Date
    Aug 2011
    Posts
    71
    Member #
    28914
    Liked
    1 times
    I am having problems with this image gallery. It uses an image in a list then a higher resolution image inside of a span. The span is hidden until hovered upon. Once hovered on, a larger image pops into the top right corner. Doesn't work in IE....WHY? I can't figure out a hack on my own.

    CODE:

    <html>
    <head>
    <style type="text/css">

    ul, li, {
    margin: 0;
    padding: 0;
    }

    ul {
    position: relative;
    width: 500px;
    height: auto;
    margin: auto;
    }

    li {
    list-style-type: none;
    }

    img {
    width: 100px;
    }

    ul li:hover span {
    position: absolute;
    top: 0;
    right: 0;
    }

    ul li span img {
    display: none;
    }

    ul li:hover span img {
    display: inline;
    width: 300px;
    }

    </style>
    </head>

    <body>
    <div id="gallery">
    <ul>

    <li>
    <img src="images/activity.jpg">
    <span><img src="images/activity.jpg"></span>
    </li>

    <li>
    <img src="images/chase.jpg">
    <span><img src="images/chase.jpg"></span>
    </li>

    <li>
    <img src="">
    <span><img src="images/chase.jpg"></span>
    </li>

    <li>
    <img src="images/activities-fishing.jpg">
    <span><img src="images/activities-fishing.jpg"></span>
    </li>

    <li>
    <img src="">
    <span><img src=""></span>
    </li>
    </ul>
    </div>
    </body>
    </html>

  2.  


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:07 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com