Decreasing space between thumbnails Decreasing space between thumbnails
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Decreasing space between thumbnails

Started by n3n, March 29, 2006, 06:13:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

n3n

Hi, i would like to decrease the space between thumbnails, what css class or file do i have to edit, cant seem to find it on the board or in the docs.

Joachim Müller


lordprodigy

Hard to tell with no visuals...

You can increase the number of thumb rows and columns and if your theme is fixed width. That would bring them closer.

If you dont want more thumbs, then save your current page on your computer and open in in your html editor. Then see which css attribute is controling the thumbnails in your specific theme and modify accordingly.

You may have to edit the thumbs display function in theme.php

n3n

Tnx for the replies. I tried to see wich css class is controlling the thumb, but then i get the img.image, and the tdbody tag.

You can check it out at www.grafflix.org/flix/index.php


Joachim Müller

edit http://www.grafflix.org/flix/themes/tentacle/theme.php, find// HTML template for thumbnails display
$template_thumbnail_view = <<<EOT

<!-- BEGIN header -->
        <tr>
<!-- END header -->
<!-- BEGIN thumb_cell -->
        <td valign="top" class="thumbnails" width ="{CELL_WIDTH}" align="center">
                <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td align="center">
                                        <a href="{LINK_TGT}">{THUMB}<br /></a>
                                        {CAPTION}
                                        {ADMIN_MENU}<br />
                                </td>
                        </tr>
                </table>
        </td>
<!-- END thumb_cell -->
<!-- BEGIN empty_cell -->
                <td valign="top" class="thumbnails" align="center">&nbsp;</td>
<!-- END empty_cell -->
<!-- BEGIN row_separator -->
        </tr>
        <tr>
<!-- END row_separator -->
<!-- BEGIN footer -->
        </tr>
<!-- END footer -->
<!-- BEGIN tabs -->
        <tr>
                <td colspan="{THUMB_COLS}">
                        <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
                                        {TABS}
                                </tr>
                        </table>
                </td>
        </tr>
<!-- END tabs -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="17" alt="" /><br />
<!-- END spacer -->

EOT;
and remove the separator rows by commenting out the html markup (do not remove the comments that already exist, they're needed).

Side note: you appear to have removed "catlist" and "alblist" from "the content of the main page" in coppermine's config, which is not recommended and will only work as long as you have a very small number of pics in your database.

n3n

Tnx alot GauGau, gonna mod it.

I know ive removed the alb and catlist, this is because I am using a custom menu (which i havent added to this theme yet), tnx for
warning me :)