centering album thumbnails centering album thumbnails
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

centering album thumbnails

Started by energy0m, December 12, 2004, 11:24:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

energy0m

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>
                </td>

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 http://quasar.hyperdrivedns.com/~hoover/gallery/index.php  for now


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

thanx!

Casper

You need to remove the table cell nect to the thumb.
Open your theme.php, find and remove both times this code;

<td width="100%" height="100%" valign="top" class="tableb_compact">

                         
                        <p class="album_desc"></p>
                        <p class="album_stat"></p>
                </td>
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller