Phoca Gallery Image Module not responsiv?

Phoca Gallery modules - modules for Phoca Gallery extension
sapo
Phoca Enthusiast
Phoca Enthusiast
Posts: 75
Joined: 13 Apr 2011, 16:28

Phoca Gallery Image Module not responsiv?

Post by sapo »

please have a look here:
https://www.natur-fotograf.ch/index.php/top-10
The picture are set to 420 width on module settings.
How can i do it to set it responsive?
I'd like 2 rows with the pictures on big screen and 1 row on Handy. but responsive.
thanks for helping

Tags:
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: Phoca Gallery Image Module not responsiv?

Post by christine »

Hi sapo,
sapo wrote: 11 Oct 2018, 20:39The picture are set to 420 width on module settings.
yes, there is an inline-segment with fixed pixel.
How can i do it to set it responsive?
in principle it works already (generally) in template.css > with: max-width:100%; but for the module there are fixed width.

In your case it's very usefull sharing us your URL, to see that the module has also a div class: mosaic. Therefore:

Add at the end of your template.css:

Code: Select all

#phocagallery-module-ri .mosaic {
max-width:100%;
height:auto;	
}
Kind regards
Christine
sapo
Phoca Enthusiast
Phoca Enthusiast
Posts: 75
Joined: 13 Apr 2011, 16:28

Re: Phoca Gallery Image Module not responsiv?

Post by sapo »

Hi Christine

thanks for helping.
I put it on the end of the Template CSS, but it is still the same problem.
Can you have a look please?
Thanks a lot!
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: Phoca Gallery Image Module not responsiv?

Post by christine »

Hi Sapo,

sehr schöne Landschaftsbilder! Erst nach Leeren des Caches, habe ich gesehen, dass auf Mobilseite es nun responsiv ist.

mit jetzigem Code: https://imgur.com/w2lvE84
ohne Code: https://imgur.com/bXaLjlL
Oder Du meinst es anders.

Liebe Grüße
Christine
sapo
Phoca Enthusiast
Phoca Enthusiast
Posts: 75
Joined: 13 Apr 2011, 16:28

Re: Phoca Gallery Image Module not responsiv?

Post by sapo »

Salut Christine

hast recht, passt so bestens.
Vielen herzlichen Dank auch fürs Kompliment
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: Phoca Gallery Image Module not responsiv?

Post by christine »

Hallo sapo,

danke für Deine Rückmeldung!
Liebe Grüße
Christine
Post Reply