Layout collapsed and cropped images

Phoca Gallery - image gallery extension
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49125
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Layout collapsed and cropped images

Post 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
If you find Phoca extensions useful, please support the project
gnutello
Phoca Member
Phoca Member
Posts: 12
Joined: 09 Apr 2014, 13:34

Re: Layout collapsed and cropped images

Post 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?
christine
Phoca Hero
Phoca Hero
Posts: 2938
Joined: 28 Nov 2010, 17:20

Re: Layout collapsed and cropped images

Post 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
gnutello
Phoca Member
Phoca Member
Posts: 12
Joined: 09 Apr 2014, 13:34

Re: Layout collapsed and cropped images

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

Re: Layout collapsed and cropped images

Post by Jan »

Ok, great to hear it.

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