Results 1 to 3 of 3

Thread: Thumbnail to Larger image

  1. #1
    Join Date
    Jul 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thumbnail to Larger image

    Hi, I'm trying to learn CSS (with difficulty), however I'm getting there. I found on Dynamic Drive a great CSS code for hovering over thumbnails to a larger image. However, is there a way I can use this code (or something similar) and have the images opening in the centre of my page and not to the left and down as it is happening with this test page: http://www.cocosaccommodation.com/homestead1.html

    Thanks in advance - Karen

  2. #2
    Join Date
    Aug 2010
    Location
    WebVille
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Why don't you go for LightBox http://www.huddletogether.com/projects/lightbox2/. It's easy to integrate and meant for gallery showcase.

  3. #3
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there KarenW,

    and a warm welcome to these forums.

    To reposition the image adjust the highlighted values here....
    Code:
    
    .thumbnail:hover span{ /*CSS for enlarged image on hover*/
        visibility: visible;
        top:20px;
        left:200px; /*position where enlarged image should offset horizontally */
     }
    
    You should note that the top and left values may also be set to negative giving you the opportunity
    of positioning the image in any direction.

    coothead

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
  •