sskkkkk Posted February 17, 2020 Posted February 17, 2020 (edited) Site URL: https://capybera-llama-l3jx.squarespace.com/basic-cakes-and-cookies Hi guys, I would like to customise to display 2 images in 1 row in Masonry Grid in Mobile View. I have use this before but didn't work for me. Quote @media screen and (max-width: 767px) { .sqs-gallery-block-grid { width: 50%; } } Here is my website url: https://capybera-llama-l3jx.squarespace.com/basic-cakes-and-cookies Please advise. Thanks! Edited February 17, 2020 by sskkkkk
tuanphan Posted February 17, 2020 Posted February 17, 2020 Which images? Can you take screenshot? 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!)
tuanphan Posted February 18, 2020 Posted February 18, 2020 8 hours ago, sskkkkk said: This section I see you fixed? 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!)
sskkkkk Posted February 19, 2020 Author Posted February 19, 2020 I'm looking for 2 images in 1 row in Masonry Grid in Mobile View.
tuanphan Posted February 20, 2020 Posted February 20, 2020 On 2/19/2020 at 8:44 AM, sskkkkk said: I'm looking for 2 images in 1 row in Masonry Grid in Mobile View. Add to Home > Design > Custom CSS @media screen and (max-width:640px) { figure.gallery-masonry-item { width: 50% !important; float: left !important; transform: unset !important; position: initial !important; } figure.gallery-masonry-item img { width: 100% !important; } .gallery-masonry-item-wrapper { height: auto !important; } } 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!)
wholeheartcreative Posted February 22, 2020 Posted February 22, 2020 Hi @tuanphan ! I'm trying to sort out the same thing with another website I'm working on: https://pigeon-koala-t94f.squarespace.com/ password: sj Basically I want it to show like this one mobile: And I followed your code but it ends up looking like this: and leaving massive gaps on top and under it. Any solution to this? Thank you in advance.
tuanphan Posted February 22, 2020 Posted February 22, 2020 (edited) 17 minutes ago, wholeheartcreative said: Hi @tuanphan ! I'm trying to sort out the same thing with another website I'm working on: https://pigeon-koala-t94f.squarespace.com/ password: sj Basically I want it to show like this one mobile: e gaps on top and under it. Any solution to this? Thank you in advance. You need another code. Above code will create problem with some images. I'm solving same problem for a client (in progress). I think I will use grid, but it still has some problems, still testing Edited February 22, 2020 by tuanphan 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!)
wholeheartcreative Posted February 22, 2020 Posted February 22, 2020 @tuanphan all good thank you for the fast reply! all the best with it! 🙂 By the way, do you know what the best way to contact Squarespace head developers for concerns like this?
tuanphan Posted February 22, 2020 Posted February 22, 2020 1 minute ago, wholeheartcreative said: @tuanphan all good thank you for the fast reply! all the best with it! 🙂 By the way, do you know what the best way to contact Squarespace head developers for concerns like this? I only contact email/livechat....but they will not support custom code 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!)
wholeheartcreative Posted March 2, 2020 Posted March 2, 2020 On 2/22/2020 at 7:45 PM, tuanphan said: You need another code. Above code will create problem with some images. I'm solving same problem for a client (in progress). I think I will use grid, but it still has some problems, still testing Hi @tuanphan How are you? Were you able to figure for your client by any chance? 🙂
tuanphan Posted March 2, 2020 Posted March 2, 2020 1 minute ago, wholeheartcreative said: Hi @tuanphan How are you? Were you able to figure for your client by any chance? 🙂 I dropped that job, the client is not happy with the end result, there are some problems generated from the code. ☹️ 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!)
wholeheartcreative Posted March 2, 2020 Posted March 2, 2020 3 hours ago, tuanphan said: I dropped that job, the client is not happy with the end result, there are some problems generated from the code. ☹️ Oh no 😞 Sorry to hear that. Thank you for your reply as always. I guess I'd have to settle with a grid for now. How I wish it was easy!
tuanphan Posted March 2, 2020 Posted March 2, 2020 (edited) 3 hours ago, wholeheartcreative said: Oh no 😞 Sorry to hear that. Thank you for your reply as always. I guess I'd have to settle with a grid for now. How I wish it was easy! Just found this plugin, you can try ;) (affiliate link) Edited March 2, 2020 by tuanphan 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!)
Michael-Mashai Posted May 3, 2020 Posted May 3, 2020 (edited) On 3/2/2020 at 6:04 AM, wholeheartcreative said: Oh no 😞 Sorry to hear that. Thank you for your reply as always. I guess I'd have to settle with a grid for now. How I wish it was easy! No easy way for that from JS side - SS wrote code in manner you can't really access it or affect, and all masonry calculations goes in code. But damn, that's a simple CSS, nothing complex: @media (max-width: 576px) { .gallery-masonry .gallery-masonry-wrapper { columns: 2; column-gap: 0; height: auto!important; display: block!important; padding: 0 5px; } .gallery-masonry-item-wrapper { height: auto!important; } .gallery-masonry-item { position: relative!important; transform: none!important; width: 100%!important; display: block; padding: 5px!important; box-sizing: border-box; } .gallery-masonry .gallery-masonry-item img { height: 100%!important; width: 100%!important; } } Edited May 5, 2020 by michaeleparkour EarvinChong, BBLDN and tuanphan 1 2
lauzza Posted May 26, 2020 Posted May 26, 2020 (edited) On 5/3/2020 at 4:45 PM, michaeleparkour said: No easy way for that from JS side - SS wrote code in manner you can't really access it or affect, and all masonry calculations goes in code. But damn, that's a simple CSS, nothing complex: @media (max-width: 576px) { .gallery-masonry .gallery-masonry-wrapper { columns: 2; column-gap: 0; height: auto!important; display: block!important; padding: 0 5px; } .gallery-masonry-item-wrapper { height: auto!important; } .gallery-masonry-item { position: relative!important; transform: none!important; width: 100%!important; display: block; padding: 5px!important; box-sizing: border-box; } .gallery-masonry .gallery-masonry-item img { height: 100%!important; width: 100%!important; } } Hey, this code is great apart from the fact it's not in order. I've combined both your code and @tuanphan's code but i still get some vertical spacing. Here is the code: @media screen and (max-width:640px) { figure.gallery-masonry-item { width: 50% !important; float: left !important; transform: unset !important; position: initial !important; display: block!important; padding: 5px!important; box-sizing: border-box; } figure.gallery-masonry-item img { width: 100% !important; } .gallery-masonry-item-wrapper { height: auto !important; } } I've also attached how this code is looking. The only issue is the space between the landscape and portrait photos. Feel like we're on the verge of actually getting this code perfect. Edited May 26, 2020 by lauzza pdee 1
brandartisan Posted November 3, 2021 Posted November 3, 2021 (edited) Hello, I wonder if there has been any revelations on the masonry summary grid for mobile? I'm still stuck with similar results to @lauzza above. Sorry to ask the legendary @tuanphan but do you perhaps know? Thank you so much! Edited November 5, 2021 by brandartisan
tuanphan Posted November 6, 2021 Posted November 6, 2021 On 11/4/2021 at 2:26 AM, brandartisan said: Hello, I wonder if there has been any revelations on the masonry summary grid for mobile? I'm still stuck with similar results to @lauzza above. Sorry to ask the legendary @tuanphan but do you perhaps know? Thank you so much! Can you share link to page where you have problem? 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!)
brandartisan Posted November 8, 2021 Posted November 8, 2021 Thank you so much! I've sent you an email - much much appreciated!
tuanphan Posted November 10, 2021 Posted November 10, 2021 Sent the code 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!)
Guest Posted November 26, 2021 Posted November 26, 2021 Hey 😇 did anyone solve this? @tuanphan can you please share the code. Kind regards.
tuanphan Posted November 27, 2021 Posted November 27, 2021 On 11/26/2021 at 11:30 AM, Winther said: Hey 😇 did anyone solve this? @tuanphan can you please share the code. Kind regards. I don't remember the code. Can you share link to page where you added gallery? We will take a look 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!)
Guest Posted November 27, 2021 Posted November 27, 2021 (edited) @tuanphan I´m developing my primary website in trial mode but I have made a test site with the masonry gallery code i have worked on so far. I need your email to add permission for you to edit and have a look. Send PM with email and I will add you asap. 🙂 Here is the code I have been working on but it acts weird. Especially on desktop scrolling down. The images kinda glitches so something must be kinda broken in the code. // ** MASONRY CUSTOM GRID .gallery-masonry .gallery-masonry-wrapper { columns: 3!important; column-gap: 4%!important; width:100%!important; height: 100%!important; display: block!important; padding-left: 20px!important; padding-right: 20px!important; } .gallery-masonry-item-wrapper { height: 100%!important; } .gallery-masonry-item { position:relative!important; transform: none!important; width: 100%!important; height: 100%!important; display: block!important; padding: 1.5px!important; box-sizing: border-box; overflow: hidden; will-change: transform; margin-bottom: 15.625vw!important; } .gallery-masonry .gallery-masonry-item img { height: 100%!important; width: 100%!important; } } @media screen and (max-width:767px) { .gallery-masonry-wrapper.gallery-masonry-list--ready { height: auto !important; } figure.gallery-masonry-item { position: relative !important; width: 50% !important; float: left !important; transform: unset !important; position: initial !important; will-change: transform!important; display: block!important; padding: 15px!important; box-sizing: border-box; margin-bottom:15.625vw!important; } .gallery-masonry-item-wrapper { height: auto !important; } .gallery-masonry .gallery-masonry-item[data-loaded] img { width: 100% !important; } .gallery-masonry { padding-left: 0 !important; padding-right: 0 !important; } } Edited November 27, 2021 by Winther
tuanphan Posted November 28, 2021 Posted November 28, 2021 21 hours ago, Winther said: @tuanphan I´m developing my primary website in trial mode but I have made a test site with the masonry gallery code i have worked on so far. I need your email to add permission for you to edit and have a look. Send PM with email and I will add you asap. 🙂 Here is the code I have been working on but it acts weird. Especially on desktop scrolling down. The images kinda glitches so something must be kinda broken in the code. // ** MASONRY CUSTOM GRID .gallery-masonry .gallery-masonry-wrapper { columns: 3!important; column-gap: 4%!important; width:100%!important; height: 100%!important; display: block!important; padding-left: 20px!important; padding-right: 20px!important; } .gallery-masonry-item-wrapper { height: 100%!important; } .gallery-masonry-item { position:relative!important; transform: none!important; width: 100%!important; height: 100%!important; display: block!important; padding: 1.5px!important; box-sizing: border-box; overflow: hidden; will-change: transform; margin-bottom: 15.625vw!important; } .gallery-masonry .gallery-masonry-item img { height: 100%!important; width: 100%!important; } } @media screen and (max-width:767px) { .gallery-masonry-wrapper.gallery-masonry-list--ready { height: auto !important; } figure.gallery-masonry-item { position: relative !important; width: 50% !important; float: left !important; transform: unset !important; position: initial !important; will-change: transform!important; display: block!important; padding: 15px!important; box-sizing: border-box; margin-bottom:15.625vw!important; } .gallery-masonry-item-wrapper { height: auto !important; } .gallery-masonry .gallery-masonry-item[data-loaded] img { width: 100% !important; } .gallery-masonry { padding-left: 0 !important; padding-right: 0 !important; } } Can you share site url? We can check easier 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!)
Guest Posted November 28, 2021 Posted November 28, 2021 @tuanphan here you go. Password: 1234567 https://plane-dolphin-phrx.squarespace.com/
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment