Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: energy0m on December 12, 2004, 11:24:48 am

Title: centering album thumbnails
Post by: energy0m on December 12, 2004, 11:24:48 am
im using the 2bornot2b theme and i am having some trouble centering the album thumbnails on the page .....

i noticed it outputs this for the thumbnail TD

<td height="100%" valign="top" class="thumbnails">
                       <a href="thumbnails.php?album=17" class="albums"><img src="albums/Rolex/thumb_240.JPG" class="image" " height="100" border="0" alt="240.JPG"></a>

and i tried adding a <div align=center> around the TD, an alige directly to the TD tag as well as <center> tags around the image ... nothing centers the image ....

the one flaw i noticed that may be breaking the code and keeping it from centering is the extra quote mark in the img tag --->

class="image" " height="100"

this is the only explanation i have for the items not centering .... my question is this .... how/where do i remove the code that is generating that " ?
I figured it would be somewhewre in the index.php or theme.php file but not sure where... any help appreciated ....

the gallery lives at  for now

i've attached my index.php and theme.php files for review ....

Title: Re: centering album thumbnails
Post by: Casper on December 12, 2004, 12:37:35 pm
You need to remove the table cell nect to the thumb.
Open your theme.php, find and remove both times this code;

Code: [Select]
<td width="100%" height="100%" valign="top" class="tableb_compact">

                        <p class="album_desc"></p>
                        <p class="album_stat"></p>
Title: Re: centering album thumbnails
Post by: Joachim Müller on December 13, 2004, 08:21:19 am
2bornot2b is still experimental, refer to