Page 2 of 2

Re: Layout collapsed and cropped images

Posted: 06 Apr 2020, 22:39
by Jan
Hi, add:

margin: 0 auto;

to
.pg-box1 class

e.g. to your custom.css following rule:

Code: Select all

#phocagallery-pane .pg-box1, #phocagallery .pg-box1, .pg-box1 {
    margin: 0 auto;
}
Image

Jan

Re: Layout collapsed and cropped images

Posted: 08 Apr 2020, 00:12
by gnutello
Thanks, works fine, it's exactly what I need. I tested your css rule at the test site and I added your rule just at the original phocagallery.css file. But I suppose that you are suggesting my to add the css rule to an overrating file. Isn't it?

Re: Layout collapsed and cropped images

Posted: 08 Apr 2020, 11:28
by christine
Hi,

you should put it into your .../media/com_phocagallery/css/custom/default.css or to you template.css to avoid an overriding file after PG update.

Kind regards
Christine

Re: Layout collapsed and cropped images

Posted: 08 Apr 2020, 15:36
by gnutello
Perfect, I put it into the default.css at the live production site and the result is as I expected. So thank you very much to the crew.

Re: Layout collapsed and cropped images

Posted: 12 Apr 2020, 17:52
by Jan
Ok, great to hear it.

Jan