How to make thumbnail margins same size? How to make thumbnail margins same size?
 

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

How to make thumbnail margins same size?

Started by matheso, February 13, 2015, 05:33:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

matheso

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:

#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!

allvip

You need to remove the br from function $template_thumbnail_view.

Open theme.php

find:


        <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}.



matheso

As always, amazing support. Thank you!

Solved.