Jump to content

Recommended Posts

I got a script from DynamicDrive.com and it works fine. I'm just wondering if it be possible to adapt it slightly. (Not asking you to  write anything for me just need a few pointers)

It's this script: http://www.dynamicdrive.com/style/csslibrary/item/css-popup-image-viewer/

 

Basically I want the image to pop up in the exact same place on the page no matter what picture you hover upon. I think it should be something to do with position-absolute??

 

Thanks in advance :)

Link to comment
https://forums.phpfreaks.com/topic/91520-adapting-a-script/
Share on other sites

Use a div with an id or class to contain all the thumbnails, remove the {position:relative;} from .thumbnail and add it to the id/class of the container div.

 

Then fiddle around with the values for the top/left properties of the span elements to get the large images appearing in the position you want.

Link to comment
https://forums.phpfreaks.com/topic/91520-adapting-a-script/#findComment-468879
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.