louisemcilroy Posted July 17 Share Posted July 17 https://www.louisemcilroy.com/ password: hello I would like to decrease the padding (top and bottom) on my portfolio pages (https://www.louisemcilroy.com/styling/parq-magazine) to match the padding on the homepage. I would like to do it for both mobile and desktop. Thanks in advance Link to comment
heyawaiszahid Posted July 17 Share Posted July 17 Hi @louisemcilroy please add below code into the Custom CSS of your website. .collection-layout-default .gallery-masonry { padding: 3.3vw 6vw !important; } Link to comment
louisemcilroy Posted July 18 Author Share Posted July 18 Thank you @heyawaiszahid it worked perfectly for the desktop site, but for mobile it has increased the padding around the entire image. Do you have a fix for this to ensure the padding is consistent across both pages (homepage and portfolio) on both desktop and mobile? Link to comment
heyawaiszahid Posted July 18 Share Posted July 18 Hi @louisemcilroy it looks like some additional margin is added to the gallery for mobile. Please comment/remove the below code or change it from 20px to 0px; @media screen and (max-width: 767px) { .gallery-masonry { margin-left: 20px !important; margin-right: 20px !important; } } Link to comment
louisemcilroy Posted July 18 Author Share Posted July 18 (edited) Thanks @heyawaiszahid now somehow the padding on the homepage has shifted 😕 Can you see the cause? The padding seems to be different between mobile and desktop on a lot of the portfolio pages. can you help me pin point which code changes which? Edited July 18 by louisemcilroy Link to comment
heyawaiszahid Posted July 18 Share Posted July 18 You are welcome @louisemcilroy I noticed that the padding on all sides (top, bottom, left, right) appears consistent on mobile devices for both the homepage and inner styling page. I've attached screenshots for reference. Could you please record a video or take screenshots where you see it different. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment