Page 1 of 1
Thumbnail width with Album mod
Posted: Fri Feb 08, 2008 6:04 am
by dhalarewich
I have a site that uses the Album mod and I want to change the width of thumbnails. How can I do this?
I can't seem to figure out how to do it via the templates. I am using the default template.
Thanks
Re: Thumbnail width with Album mod
Posted: Fri Feb 08, 2008 10:53 am
by Russ
I think images uploaded via the modules get thumbnails automatically created at a fixed width, 100px I think. If you upload (ftp) images and thumbnails yourself then I guess you can set the width of thumbnails to anything you like since you are creating them.
Width and/or sometimes height of what you see is in the CSS not in the templates? Templates for structure / CSS for presentation.
Part of the default Album CSS is given below.
Code: Select all
/* Album and Picture Lists */
.thumb
{
padding:0;
[b] width:150px;[/b]
margin:0 0.5em 0.5em 0;
/* Thumbnail spacing */
text-decoration:none;
line-height:normal;
list-style-type:none;
text-align:center;
float:left;
}
.thumb a
{
display:block;
[b] height:72px; [/b]
/* Set link formatting*/
width:100px;
/* Thumb width*/
/* Thumb height*/
padding:10px;
/* Thumb padding to form thumb frame */
/* You can set the above to 0px = no frame - but no hover indication!*/
margin:0;
background-color:white;
/*Background of thumb */
border-top:1px solid #eee;
/* Borders of thumb frame */
border-right:2px solid #ccc;
border-bottom:2px solid #ccc;
border-left:1px solid #eee;
text-decoration:none;
}
Re: Thumbnail width with Album mod
Posted: Fri Feb 08, 2008 1:29 pm
by Vin
I'm curious... isn't there a way how to change the default size of thumbnails? Is it hard-coded?
Re: Thumbnail width with Album mod
Posted: Sat Feb 09, 2008 12:30 am
by kilauea