Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: centering album thumbnails  (Read 2727 times)

0 Members and 1 Guest are viewing this topic.

energy0m

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 18
  • saving the world one byte at a time
centering album thumbnails
« 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>
                </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!
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: centering album thumbnails
« Reply #1 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>
                </td>
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: centering album thumbnails
« Reply #2 on: December 13, 2004, 08:21:19 am »

2bornot2b is still experimental, refer to http://forum.coppermine-gallery.net/index.php?topic=9304.0

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.