Jump to content

Adapting a script


almightyegg

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.