Parz1978 Posted November 19, 2022 Share 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> Link to comment
Beyondspace Posted November 20, 2022 Share 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? Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
Parz1978 Posted November 20, 2022 Author Share 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 Link to comment
Solution tuanphan Posted November 23, 2022 Solution Share 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 How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Parz1978 Posted November 26, 2022 Author Share Posted November 26, 2022 Thanks! This worked perfectly. Much appreciated. Mike. 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