In the css, addition highlighted:
Code:
.gallerycontainer{
position: relative;
/*Add a height attribute and set to largest image's height to prevent overlaying*/
background: url(../media/235.jpg) 417px 47px no-repeat;
}
In the case of davedev, the image (red) should be the path to the first larger image. In the case of b3nny, it should be to this wildcard image.
Paths in css files are relative to the css file. If the css is on the page, then they are relative to the page.
The left and top coordinates (green) should be the the left and top coordinates of the:
Code:
.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
top: 40px;
left: 410px; /*position where enlarged image should offset horizontally */
z-index: 50;
}
selector rule + (in the case of b3nny) 7 or whatever it takes to get it where you want it. Probably the same for davedev.
For both of you - The image used should be small enough so that once positioned as desired, it will be covered by any of the other larger images.
This could be a deal breaker for davedev - if his first larger image is larger than any of his other larger images, there will be bleed through, but padding and background could probably be added to those. If not they could be matted in an image editing program with a solid color matte matching the background color of the page.
In the case of b3nny, there will be greater uniformity across browsers if you use a standards invoking DOCTYPE. But when you do, you will have to specify px for the units for all non 0 values of position or dimension in the css like the added red in the above .thumbnail:hover span selector.
To make your document standards compliant, put this:
as the very first thing in the source code of your page.
Payment may be made to:
http://home.comcast.net/~jscheuer1/side/donate.htm
$25 seems fair.
Note: If you want more control over things, you will probably have to use javascript. This script:
http://www.dynamicdrive.com/dynamici...thumbnail2.htm
would be a good one in that case. It can easily be made to show an image until the first thumbnail is hovered, and has the added benefit of not having to revert onmouseout.
Bookmarks