We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Oct 5, 2021 2:33 PM
Hi all,
I'm currently trying to make the size of the images in the image gallery smaller on a desktop view. It looks fine on mobile because the images automatically adjusts, but on desktop it's huge. Is there a way to modify it to look normal?
Desktop view:
Mobile view:
Thank you in advance.
Solved! Go to Solution.
Oct 5, 2021 6:30 PM
Hi @CVidaillac ,
Try adding the CSS I shared at the bottom of the file without the style tags (<style></style>)
Oct 5, 2021 3:31 PM
Hi @CVidaillac ,
Try this:
<style>
.hs_cos_gallery {
max-width: 800px;
margin: 0 auto;
}
</style>
Change the '800px' to something that works for you.
Oct 5, 2021 4:28 PM
Hi @Teun,
Thank you for the code! I'm not familiar with the HTML/CSS, so thank you for your patience.
I went the DesignTool under that template and I cannot find a way to change the CSS for the Image Gallery Module. Would you be able to help me out?
Thank you
Oct 5, 2021 6:30 PM
Hi @CVidaillac ,
Try adding the CSS I shared at the bottom of the file without the style tags (<style></style>)
Oct 5, 2021 3:13 PM
Hi @CVidaillac ,
Can you share a URL of a preview page so we can do some testing?
Might be able to deliver the CSS you need to fix this.
Oct 5, 2021 3:19 PM - edited Oct 5, 2021 3:23 PM
Hi @Teun ,
For sure, here it is : https://landing.narcitymedia.com/-temporary-slug-8c8d277a-e624-4319-a69d-8775b89dd6d3?hs_preview=vXN...
Thank you!
Oct 5, 2021 3:09 PM
Hi @CVidaillac ,
Can you demonstrate how to insert these images on your page? It would be good to see how it is programmed for this.
Either way, you can easily adjust the size by editing your code's CSS, but it requires a basic knowledge of html/css.
Best regards!
Oct 5, 2021 3:23 PM - edited Oct 5, 2021 3:23 PM
Hi @DanielSanchez ,
I used the "Image Gallery" module.
Is there a specific resource you know to change the CSS to make it desktop friendly?
Thank you!