Page 2 of 2

Re: CSS bug/error

Posted: 21 Apr 2020, 22:05
by rogerco
Hmm, OK. But when I use Photoswipe I get this on the gallery display:
Image
all the thumbnails are offset in their boxes. This is independent of the mods to renderdetailwindow.php
I want to have the title and download and comment options available in the gallery which was why I chose JAK - it seemed the only one that worked.

Re: CSS bug/error

Posted: 21 Apr 2020, 22:25
by rogerco
Which you can fix by adding

Code: Select all

.pg-box3 figure {
    margin:auto;
}
in any convenient stylesheet
The user agent default stylesheet in a chromium browser has margin-inline-start:40px; margin-inline-end:40px;
I don't think this would upset anything else ...

Re: CSS bug/error

Posted: 23 Apr 2020, 18:05
by Jan
Hi, the margin: auto can be a problem when vertical centering but hard to say. :idea: (if cropped images are used, there is no problem with vertical centering)

Re: CSS bug/error

Posted: 23 Apr 2020, 18:25
by rogerco
perhaps margin:0 auto; would be safer.
I was using Brave browser when I noticed the problem - I'm guess that the user agent setting might be the same in many browsers but I haven't tested any others.
Anyway I think this topic could now be flagged solved.

Re: CSS bug/error

Posted: 24 Apr 2020, 14:40
by Jan
Ok, thank you for the info.

Jan