PDA

View Full Version : Image Thumbnail Viewer-enlarged image behind the text layer



gobindas
01-02-2006, 01:49 AM
Hi,
I am using this script (http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm) to see enlarged image by clicking the thumbnail image. It works fine until I make a layer and write some text into the layer. Now when I click the thumbnail, the enlarged image appears behind the text (or the layer). Could anyone help me to solve this problem, i.e., tell me what I have to change so that the enlarged image appears over (not behind) any other text or any other layes on that page.
Thanks

ddadmin
01-02-2006, 06:16 AM
Overlapping is a common problem with DHTML layers, and sometimes there is no easy way around it- for example, with a layer being hidden by a form field. You can try adding a z-index attribute to the CSS of step 1:


#showimage{
position:absolute;
visibility:hidden;
border: 1px solid gray;
z-index: 100;
}

gobindas
01-07-2006, 10:09 PM
Thanks! It works well now.
Gobinda