CSS bug/error

Phoca Gallery - image gallery extension
rogerco
Phoca Member
Phoca Member
Posts: 47
Joined: 18 Sep 2011, 16:17

Re: CSS bug/error

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

Tags:
rogerco
Phoca Member
Phoca Member
Posts: 47
Joined: 18 Sep 2011, 16:17

Re: CSS bug/error

Post 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 ...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: CSS bug/error

Post 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)
If you find Phoca extensions useful, please support the project
rogerco
Phoca Member
Phoca Member
Posts: 47
Joined: 18 Sep 2011, 16:17

Re: CSS bug/error

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: CSS bug/error

Post by Jan »

Ok, thank you for the info.

Jan
If you find Phoca extensions useful, please support the project
Post Reply