View Full Version : CSS Image Gallery - DEFAULT IMG
PAUL59
08-19-2011, 01:20 PM
I'm using http://www.dynamicdrive.com/style/csslibrary/item/css-image-gallery/P30/
but am unsure how to position a default image in the space where the enlarged img goes.
At the moment I have a large white space.
Many thanks for any help.
Paul
readyfire
08-21-2011, 02:08 PM
I'm guessing when you say "default" you are referring to the thumbnail image? Have you replaced the code with your default image URL/file inside BOTH <img> tags? ie:
<a class="thumbnail" href="#thumb"><img src="http://DEFAULT.jpg" width="100px" height="66px" border="0" />
<span><img src="http://DEFAULT.jpg" alt="default img" width="500px" height="340px"/><br /></span></a>
This is where I had encountered problems at the start because my URL did not initially match in both <img> tags.
PAUL59
08-22-2011, 01:49 PM
Thanks for your reply Readyfire
I was advised to code it as -
<div class="gallerycontainer">
<div style="position:absolute; left: 270px; z-index: 40;">
<img src="your_default_image"></div>
This allows the large image to be displayed when none of the thumbs are being made active.
Paul
ajfmrf
08-22-2011, 10:25 PM
That this would determine the location of the "hover" image:
.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
top: 0;
left: 230px; /*position where enlarged image should offset horizontally */
z-index: 50;
}
change the highlighted to adjust the location
Bud
ps- try to always post you page with the problem to help people "see" what you have in case there are problems with how the script is used.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.