Results 1 to 4 of 4

Thread: CSS Image Gallery - DEFAULT IMG

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

    Default CSS Image Gallery - DEFAULT IMG

    I'm using http://www.dynamicdrive.com/style/cs...e-gallery/P30/
    but am unsure how to position a default image in the space where the enlarged img goes.

    At the moment I have a large white space.

    Many thanks for any help.

    Paul

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

    Default

    I'm guessing when you say "default" you are referring to the thumbnail image? Have you replaced the code with your default image URL/file inside BOTH <img> tags? ie:

    <a class="thumbnail" href="#thumb"><img src="http://DEFAULT.jpg" width="100px" height="66px" border="0" />
    <span><img src="http://DEFAULT.jpg" alt="default img" width="500px" height="340px"/><br /></span></a>

    This is where I had encountered problems at the start because my URL did not initially match in both <img> tags.

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

    Default

    Thanks for your reply Readyfire

    I was advised to code it as -

    <div class="gallerycontainer">

    <div style="position:absolute; left: 270px; z-index: 40;">
    <img src="your_default_image"></div>

    This allows the large image to be displayed when none of the thumbs are being made active.

    Paul

  4. #4
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default I would guess

    That this would determine the location of the "hover" image:

    Code:
    .thumbnail:hover span{ /*CSS for enlarged image*/
    visibility: visible;
    top: 0;
    left: 230px; /*position where enlarged image should offset horizontally */
    z-index: 50;
    }
    change the highlighted to adjust the location


    Bud

    ps- try to always post you page with the problem to help people "see" what you have in case there are problems with how the script is used.

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
  •