Hi there,
I used the Gallery element to display images. I want the images to be displayed smaller but regardless of the size I select under “Style” the image size stays the same.
Any solutions for that?
Thanks a lot
Daniela
Hi Daniela,
Could you post details in private to where we can see and reproduce the problem please?
Best regards,
Rikard
Hi Rikard,
thank you for your help, please find details below.
Regards
Daniela
Hi,
Thank you for the link to your site, I see that your gallery is about 400px square with very little space between them while your other images are 300px square with a lot of space between them, so to match these try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:
#top.home div .avia-gallery img {
padding: 50px;
}
After applying the css, please clear your browser cache and check.
Best regards,
Mike
Hi Mike,
this works, thank you. Does the CSS apply to all pages? Do I have to change anything if I add galleries to all pages and want them to look the same?
Regards
Daniela
Hi,
Thanks for the update. The CSS Mike posted will apply to all pages. Please let us know if you would like more specific CSS.
Best regards,
Rikard
Hi Rikard,
I will adjust my existing pages and give a feedback. Thank you very much so far!
For future reference:
It has to be
#top div .avia-gallery img {
padding: 50px;
}
to work for all pages. Now it is the way I wanted it to be. I also added
#top div .avia-gallery img {
padding: 50px;
border-style:none;
}
to delete the thin grey border around the gallery.
Thanks for helping me, thread can be closed.
Regards
Daniela
Hi,
Great, I’m glad that you found a working solution, and thanks for sharing your code. I’ll close this thread for now then, please open a new thread if you should have any further questions or problems.
Best regards,
Rikard