Results 1 to 3 of 3

Thread: CSS image viewer...

  1. #1
    Join Date
    Nov 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post CSS image viewer...

    I am new here.....also new to CSS.....I used the code from the below link to create a image viewer.
    http://www.dynamicdrive.com/style/cs...-image-viewer/

    But i am facing below problem:
    I have designed a webpage shellcraft.html. my webpage is 2 columned. I have designed it such that the thumbnails are on left side and when you hover onto the thumbnails the enlarged image appears on right side. but my problem is that...when you hover on the thumbnail, the enlarges image is blocked by the object(another image) present on right side. I want hovered image to appear over the already present image....the below link has image which precisely explains my difficulty...(JPEG image)

    http://www.4shared.com/photo/cka9polw/difficulty.html

    I have also uploaded my website folder. the only file of my intrest is shellcraft.hml. The below link has the folder.(1.8 MB RAR folder)

    http://www.4shared.com/file/cJYi0pEV/web.html

    Please help me to solve this problem....

    Thank you in advance
    Last edited by jscheuer1; 11-09-2011 at 06:06 PM. Reason: removal of other posts created a sense issue

  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

    I downloaded your web.rar and opened it up for testing. There isn't an image over to the right as there is in your picture of the problem, so there's nothing to solve. I diagnosed the missing images for the page, perhaps it's one of those:

    1. ../../ima/4c8a607673b8510092010.gif
    2. media/tree_thumb.jpg
    3. media/tree.jpg
    Oh, never mind, it was the first one, I just stuck a Google logo in there for testing purposes. All you need to do is at the beginning of Shellcraft.html edit the z-index value as shown:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Shellcraft</title>
    <meta name="keywords" content="About Chrome, Web Design, CSS, HTML, free template, templatemo" />
    <meta name="description" content="Chrome Company - free website template provided by templatemo.com" />
    <link href="templatemo_style.css" rel="stylesheet" type="text/css" />
    
    <style type="text/css">
    
    .thumbnail{
    position: relative;
    z-index: 0;
    }
    
    .thumbnail:hover{
    background-color: transperant;
    z-index: 200;
    }
    
    .thumbnail span{ /*CSS for enlarged image*/
    position: absolute;
    background-color: li . . .
    Edit: There's another problem with the page in general though. If the user's window is wide enough, for some reason the layout gets squished into the center with stuff overlaying other stuff (click for larger view (max 1/3)):

    Attachment 4191

    Putting a wrapper div around the entire body content seems to solve that:

    Code:
    </head>
    <body>
    <div style="position:relative; max-width: 1142px; margin: 0 auto;">
    
    <div id="Layer1" style="positio . . .
    and at the end:

    Code:
    <div id="templatemo_footer_wrapper">
        <div id="templatemo_footer">
            Copyright © 2011 Antarprerna
              <div class="cleaner"></div>
      </div>
    </div> 
    </div>  
    </body>
    </html>
    If you're worried about IE 6 (doesn't support max-width) I can give you a code for it. But the entire layout should perhaps be rethought with an eye to getting rid of absolute positioning except for the enlarged images which require it. Overuse of absolute positioning is what caused the first problem to begin with.
    Last edited by jscheuer1; 11-09-2011 at 06:34 PM. Reason: saw another problem
    - John
    ________________________

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

  3. #3
    Join Date
    Nov 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    sorry sir i forgot to put those images in web.rar.......It is your greatness that you took your precious time to replace those images......

    I have successfully implemented the solution that you hav mentioned in above post..... and it works awsome.....

    Also I was having the second problem....but din't mention it here coz i thought it was negligible....but you gave solution for that also.....thank you very much for helping me...

    Thank you very much....

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
  •