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: thumbnails (div) with different sizes  (Read 3119 times)

0 Members and 1 Guest are viewing this topic.

grimez

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
thumbnails (div) with different sizes
« on: November 05, 2016, 08:58:08 pm »

hi guys.

I'm having a problem with my custom theme.

When I put it to show 6 thumbnails the first thumbnail gets bigger than the other
print: http://prntscr.com/d3ipwp


My css from thumbnails is simple.

.thumbnails {
Padding: 20px 0px;
Background: rgba (0,0,0,0,1);
Position: relative;
Overflow: hidden;
}

someone can hlp me?
Logged

grimez

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: thumbnails (div) with different sizes
« Reply #1 on: November 05, 2016, 08:59:43 pm »

And that happens even with the Curve theme.
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1303
Re: thumbnails (div) with different sizes
« Reply #2 on: November 06, 2016, 01:28:59 pm »

This behavior is usually the result of using percentages as widths. A thumbnail row with 5 images works out nicely with 20%_20%_20%_20%_20%. But 6 doesn't divide into 100 evenly, so you end up with something like 17%_17%_17%_17%_17%_17%. That generally causes all but one to be evenly displayed. One method to overcome the situation is to use "width:auto" instead of "width:17%".

Also see this thread: http://forum.coppermine-gallery.net/index.php/topic,78874.msg382429.html#msg382429
« Last Edit: November 06, 2016, 02:06:41 pm by ron4mac »
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 21 queries.