I was working on Album templates and found this on Dynamic Drive, it's all CSS driven no JS, totally configurable...
http://multiintech.com/cmsms1.1/album.html look for the CSS one...
Pure CSS gallery 2...
Re: Pure CSS gallery 2...
Looks nice.
Maybe you can show solution here
... or/and add it as patch in project.
Maybe you can show solution here

Re: Pure CSS gallery 2...
No Javascript ! Very good !mark wrote: it's all CSS driven no JS, totally configurable...
Thank you very much Mark.
Pierre M.
Re: Pure CSS gallery 2...
This was nice! 
Br,K

Br,K
Re: Pure CSS gallery 2...
OK here is the codes...
Album template... I used the bare minimum, you can probably throw this in a full template...
CSS...
The CSS you may need to change...
.thumbnail span{ /*CSS for enlarged image*/ the box around the large img.
position: absolute;
background-color: lightyellow; you can change this, it's background color
padding: 5px; room between large img. and box
left: -1000px;
border: 1px dashed gray; outside box border, you can change
visibility: hidden;
color: black; text under image color
text-decoration: none;
}
.thumbnail span img{ /*CSS for enlarged image*/ just the image not the box outside it
width:450px; size of image, I used a smaller than img. size to constrain it on the page
border-width: 0;
padding: 2px;
}
.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
top: 0; from the gallerycontainer
left: 110px; /*position where enlarged image should offset horizontally */ since my images are aligned down the left it's just a little more than the width of the thumbs
z-index: 50;
}
Hope I didn't miss anything... have fun...
Album template... I used the bare minimum, you can probably throw this in a full template...
Code: Select all
{if $returnlink}<p><a href="{$returnlink}">Return to the album index page</a></p>{/if}
<div class="gallerycontainer">
<span class="picturelist">
{foreach from=$pictures item=picturesrow}
{foreach from=$picturesrow item=onepicture}
<span class="thumbs"><a class="thumbnail" href=" "> <img src="{$onepicture->thumbnail}" alt="{$onepicture->name} - {$onepicture->comment}" title="{$onepicture->name} - {$onepicture->comment}" width="{$onepicture->thumbnailwidth}" /><span><img src="{$onepicture->picture}" /><br />{$onepicture->name} - {$onepicture->comment}</span></a>
</span><br />
{if ($onepicture->number==$picturenumber and !$picture)}{assign var=picture value=$onepicture}{/if}
{/foreach}
{/foreach}
</span>
</div>
{if $picturecount==0}No image{/if}
Code: Select all
/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */
.gallerycontainer{
position: relative;
/*Add a height attribute and set to largest image's height to prevent overlaying*/
}
.thumbnail img{
border: 1px solid white;
margin: 0 5px 5px 0;
}
.thumbnail:hover{
background-color: transparent;
}
.thumbnail:hover img{
border: 1px solid blue;
}
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 5px;
left: -1000px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}
.thumbnail span img{ /*CSS for enlarged image*/
width:450px;
border-width: 0;
padding: 2px;
}
.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
top: 0;
left: 110px; /*position where enlarged image should offset horizontally */
z-index: 50;
}
.thumbnail span{ /*CSS for enlarged image*/ the box around the large img.
position: absolute;
background-color: lightyellow; you can change this, it's background color
padding: 5px; room between large img. and box
left: -1000px;
border: 1px dashed gray; outside box border, you can change
visibility: hidden;
color: black; text under image color
text-decoration: none;
}
.thumbnail span img{ /*CSS for enlarged image*/ just the image not the box outside it
width:450px; size of image, I used a smaller than img. size to constrain it on the page
border-width: 0;
padding: 2px;
}
.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
top: 0; from the gallerycontainer
left: 110px; /*position where enlarged image should offset horizontally */ since my images are aligned down the left it's just a little more than the width of the thumbs
z-index: 50;
}
Hope I didn't miss anything... have fun...