Parz1978 Posted November 19, 2022 Posted November 19, 2022 Hello Forum, I've been using this block of code in the advanced panel of 'Page Settings' in order to assure that on a mobile device the gallery images display as a single column. The problem I'm having is that it doesn't add any padding below the images and they just stack on top of each other. Anyone know if I can alter this code to adjust bottom padding? As a crappy workaround I just added a caption to every photo which is set to <br> but it adds too much padding to both the mobile and the desktop photos (see screenshot below). Thank you for any thoughts. Mike. <style> @media screen and (max-width:767px) { .gallery-masonry-wrapper.gallery-masonry-list--ready { height: auto !important; } figure.gallery-masonry-item { position: relative !important; width: 100% !important; transform: unset !important; } .gallery-masonry-item-wrapper { height: auto !important; } .gallery-masonry .gallery-masonry-item[data-loaded] img { width: 100% !important; } .gallery-masonry { padding-left: 2 !important; padding-right: 2 !important; } } </style>
Beyondspace Posted November 20, 2022 Posted November 20, 2022 14 hours ago, Parz1978 said: Hello Forum, I've been using this block of code in the advanced panel of 'Page Settings' in order to assure that on a mobile device the gallery images display as a single column. The problem I'm having is that it doesn't add any padding below the images and they just stack on top of each other. Anyone know if I can alter this code to adjust bottom padding? As a crappy workaround I just added a caption to every photo which is set to <br> but it adds too much padding to both the mobile and the desktop photos (see screenshot below). Thank you for any thoughts. Mike. <style> @media screen and (max-width:767px) { .gallery-masonry-wrapper.gallery-masonry-list--ready { height: auto !important; } figure.gallery-masonry-item { position: relative !important; width: 100% !important; transform: unset !important; } .gallery-masonry-item-wrapper { height: auto !important; } .gallery-masonry .gallery-masonry-item[data-loaded] img { width: 100% !important; } .gallery-masonry { padding-left: 2 !important; padding-right: 2 !important; } } </style> Can you share your site with the protected password so I can take a look? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
Parz1978 Posted November 20, 2022 Author Posted November 20, 2022 https://parziale.squarespace.com/config/pages Is this the link you would need? POW is the name of the subpage. Password should be set to public. Thanks for taking a look and let me know if that's not the right link. Mike
Solution tuanphan Posted November 23, 2022 Solution Posted November 23, 2022 On 11/21/2022 at 4:41 AM, Parz1978 said: https://parziale.squarespace.com/config/pages Is this the link you would need? POW is the name of the subpage. Password should be set to public. Thanks for taking a look and let me know if that's not the right link. Mike Add margin-bottom to this code figure.gallery-masonry-item { position: relative !important; width: 100% !important; transform: unset !important; margin-bottom: 20px !important; } Parz1978 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Parz1978 Posted November 26, 2022 Author Posted November 26, 2022 Thanks! This worked perfectly. Much appreciated. Mike.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment