This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 9 - Pages: 1 - Last Post: 31 Aug 26, 21:14 Last Post By: mmander Threads: [ Previous | Next ]
mmander

Posts: 5
Registered: 31-Aug-2026
Lightbox thumbnail spacing
Posted: 31 Aug 26, 16:29
 
  Click to reply to this thread Reply
I recently purchased jAlbum and have started using the Tiger theme, with a number of CSS tweaks. The one thing I haven't yet figured out is how to increase the spacing between the images on the lightbox thumbnail strip. It is a very thin black separator, and I would prefer it to be wider.

Any advice on adding a CSS snippet to fix that? Here is an example album of mine...

https://www.sublimephoto.com/exhibit/2022/de22-gengenbach/

Thanks for any help!

-Mike

Edited by: mmander on 31 Aug 2026, 16:29
JeffTucker

Posts: 8,577
Registered: 31-Jan-2006
Re: Lightbox thumbnail spacing
Posted: 31 Aug 26, 16:36   in response to: mmander in response to: mmander
Helpful
  Click to reply to this thread Reply
Try this in your custom CSS:
.lightbox .thumb-strip .thumb-cont .thumbs a {margin: 0px 3px;}
The default values are 0p 1px.
mmander

Posts: 5
Registered: 31-Aug-2026
Re: Lightbox thumbnail spacing
Posted: 31 Aug 26, 16:48   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Thank you so much Jeff! That is exactly what I was looking for. Cheers!

-Mike
JeffTucker

Posts: 8,577
Registered: 31-Jan-2006
Re: Lightbox thumbnail spacing
Posted: 31 Aug 26, 16:51   in response to: mmander in response to: mmander
 
  Click to reply to this thread Reply
I don't think this will have any nasty side-effects, but if you see any misbehavior in the thumbstrip, you'll know where to look. ;)
mmander

Posts: 5
Registered: 31-Aug-2026
Re: Lightbox thumbnail spacing
Posted: 31 Aug 26, 19:20   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Sorry, but one more question. Not a huge issue perhaps, but with the wider spacing, if I use the right arrow to scroll the row of thumbnails, it will eventually get to a black one at the right edge. It doesn't seem to preload enough, or quickly enough? Even with the default 1 pixel spacing, if I hit the "END" key on the keyboard to scroll to the end quickly, I get a row of black thumbnails - it does not seem to refresh.

So one more question would be if there is any easy way to preload all the thumbnails so one doesn't run into the blank thumbnail glitch? Could this also be a simple CSS patch, or might it be more involved?

Added: Or maybe if the left/right scroll arrows were to move the thumbnail strip a little less, that could solve it too? Maybe that would be a simpler patch?

-Mike

Edited by: mmander on 31 Aug 2026, 19:20

Edited by: mmander on 31 Aug 2026, 19:23

Edited by: mmander on 31 Aug 2026, 19:24

RobM

Posts: 4,087
Registered: 4-Aug-2006
Re: Lightbox thumbnail spacing
Posted: 31 Aug 26, 20:31   in response to: mmander in response to: mmander
 
  Click to reply to this thread Reply
You are looking at the published album or the album via jAlbum's preview, aren't you? You cannot open the index.html file locally when using a JSON driven skin like Tiger.
JeffTucker

Posts: 8,577
Registered: 31-Jan-2006
Re: Lightbox thumbnail spacing
Posted: 31 Aug 26, 20:34   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
I'm seeing the black thumbnails on his site, so viewing locally isn't the issue.

I'll have to leave this one to Laza, since it's not a CSS thing. This must be coming from the skin's Javascript, which is a dark and scary place.

ETA: And I see the same thing with the default thumbnail margins, so it's not related to the spacing tweak we've done.
hmesman

Posts: 39
Registered: 5-Feb-2009
Re: Lightbox thumbnail spacing
Posted: 31 Aug 26, 20:37   in response to: mmander in response to: mmander
 
  Click to reply to this thread Reply
Hi,

Every now and then, my website behaves in the same way.

Kind Regards,
Hans

mmander

Posts: 5
Registered: 31-Aug-2026
Re: Lightbox thumbnail spacing
Posted: 31 Aug 26, 21:09   in response to: mmander in response to: mmander
 
  Click to reply to this thread Reply
Thanks for the testing guys. I am not super concerned about the end key situation (jumping right to the last page of thumbnails), but I am still wondering if there is a way to reduce the amount that the thumbnails scroll when an arrow button is clicked. I feel as though just scrolling by two or three less images might be enough to allow them to load? In fact, when I view the gallery on my iPad Mini vertically, there are fewer thumbnails showing and the blank thumbnail issue is not as bad as when I rotate it horizontally where the screen is wider.

I also wonder if the mix of verticals to horizontals makes a difference since the more vertical format images there are, the more thumbnails fit on the screen. Maybe that is the culprit if people see some inconsistent behaviour in their own galleries?

I know I can right arrow (keyboard) scroll through the images as fast as possible and the thumbnails always load. In any case, this is not a huge issue since I default my galleries to not show thumbnails anyway, although at some point it would be nice if it were addressed somehow.

-Mike
mmander

Posts: 5
Registered: 31-Aug-2026
Re: Lightbox thumbnail spacing
Posted: 31 Aug 26, 21:14   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
ETA: And I see the same thing with the default thumbnail margins, so it's not related to the spacing tweak we've done.

True, although it does seem to get worse with larger margins, especially after I also tried adding some additional margins and a grey background as in this gallery...

https://www.sublimephoto.com/exhibit/2022/de22-burg_herzberg/index.html

What is odd, now that I think of it, is that with larger margins, fewer thumbnails fit on the page, so why does it seem worse?

-Mike
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums