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: How to make thumbnail margins same size?  (Read 2061 times)

0 Members and 1 Guest are viewing this topic.

matheso

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 91
How to make thumbnail margins same size?
« on: February 13, 2015, 05:33:52 am »

Currently my gallery displays images with a thin black border on the left, right and top.. but the bottom is about 5x thicker.

I've attached a screenshot showing what I mean. My gallery is here:  http://www.taskbasket.net/gallery   (scroll down)

The css code for thumbWrapp thumbnails is:
Code: [Select]
#thumbWrapp .thumbnails {
    background-color: #000000;
    width: 33%;
    float: left;
    margin: 0.1%;
}

so I checked Config > Thumbnail Settings and for "Height of thumbnail" I have 340 pixels, and max dimension is 400 pixels (with option set as Use Dimension 'Width').

How do I make the black bottom space of my thumbs as thin as the other sides?


Thank you!
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1291
Re: How to make thumbnail margins same size?
« Reply #1 on: February 13, 2015, 03:30:16 pm »

You need to remove the br from function $template_thumbnail_view.

Open theme.php

find:

Code: [Select]
        <div class="thumbnails" width ="{CELL_WIDTH}" align="center">
                                <div align="center">
                                        <a href="{LINK_TGT}">{THUMB}<br /></a>
                                        {CAPTION}
                                        {ADMIN_MENU}
                                </div>
        </div>

remove <br /> after {THUMB}.


Logged

matheso

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 91
Re: How to make thumbnail margins same size?
« Reply #2 on: February 13, 2015, 04:58:58 pm »

As always, amazing support. Thank you!

Solved.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.