SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2006
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    always center popup image

    Hi there,

    I found this nice css code on popup image onmouseover here:
    http://www.dynamicdrive.com/style/cs...p-image-viewer

    The problem is sometimes the large popup image can only be seen half, the other half is below the screen. Is there a way to let the popup image always appear full inside the screen area?

    thanks

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,269
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    The pop up image is usually placed relative to the link so you can't really automate the process if you have links in odd places. You would just have to ensure that the images are not too big or that method isn't really useful unless you have a fixed width and height to work with.

    If you have a fixed width and height container you could place an image in the same place as in the gallery demo on this page.

    However it sounds like you want something more dynamic and you would be better off with a lightbox type of effect.

  3. #3
    SitePoint Zealot
    Join Date
    Jun 2006
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks Paul! the Lightbox look really good, i'll try to use it on my site.


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
  •