hirethestache Posted October 25, 2020 Share Posted October 25, 2020 Site URL: https://therobertpaulgroup.squarespace.com/home On the Services section on https://therobertpaulgroup.squarespace.com/home, I am having trouble scaling the icon images on mobile. They look fine on desktop (below) but I cannot figure out how to retain a max width on mobile. Below are mobile (horiz) and mobile (vert) I am attempting to mimic the styling seen on The Markam Group, which retains scale and position across desktop and mobile: https://www.markhamgroup.com/services/ So far I've tried the following code (with proper block codes) with no success. /* mobile screens */ @media only screen and (max-width: 640px) { #block-unique-ID{ width: 50%; } } /* tablet screens */ @media only screen and (max-width: 768px) { #block-unique-ID{ width: 100%; } } Any help is greatly appreciated! Link to comment
tuanphan Posted October 25, 2020 Share Posted October 25, 2020 Above code should work. Did you target correct ID? Or use this CSS, it will target 8 icons @media screen and (max-width:640px) { div#block-1dda138206e1344d38fe + .row .image-block { width: 30%; }} 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!) Link to comment
hirethestache Posted October 26, 2020 Author Share Posted October 26, 2020 8 hours ago, tuanphan said: Above code should work. Did you target correct ID? Or use this CSS, it will target 8 icons @media screen and (max-width:640px) { div#block-1dda138206e1344d38fe + .row .image-block { width: 30%; }} I really appreciate that. This had it working for a second, but then I moved a block around and now I can't figure out the block ID. Using SS Block ID extension in Chrome, and I've gone through every one from top to bottom, replacing the block in the code above. Link to comment
hirethestache Posted October 27, 2020 Author Share Posted October 27, 2020 Bumping up. I still have not been able to figure this out. Anybody have any other suggestions? Link to comment
tuanphan Posted October 28, 2020 Share Posted October 28, 2020 @media screen and (max-width:767px) { div#page-section-5efd0f6bbb54e267c6bc70d1 .image-block { width: 30% !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!) Link to comment
hirethestache Posted October 28, 2020 Author Share Posted October 28, 2020 That worked! Thank you! The icons still stack above their respective text block, though. Do you have any suggestion on how to retain positioning *and* scaling, like seen in the examples below? Desktop: Tablet: Mobile: The only workaround I can think of is replacing the whole image & text blocks with flattened image blocks that contain rasterized text. Not ideal at all, but it's really the only way I can think of keeping it all homogenous. Link to comment
tuanphan Posted October 30, 2020 Share Posted October 30, 2020 Hi. I see you solved. Do you still need help on this? 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!) Link to comment
hirethestache Posted October 30, 2020 Author Share Posted October 30, 2020 6 hours ago, tuanphan said: Hi. I see you solved. Do you still need help on this? The solution is only somewhat temporary. I created the "Services" blocks as flattened images, but I would really love to utilize responsive text. Do you think it's even possible on Squarespace to implement the same responsive functionality as seen on https://www.markhamgroup.com/services/? Link to comment
DruH Posted November 19, 2020 Share Posted November 19, 2020 Hi! I'm having similar issues... the top two image blocks (the one that says flora moda and the triptych beneath that) on my home page are not scaling for mobile. I'd like them to scale down to fit on mobile. my site is floramoda.co password:flowers Thanks in advance for any help! Link to comment
tuanphan Posted November 19, 2020 Share Posted November 19, 2020 7 hours ago, DruH said: Hi! I'm having similar issues... the top two image blocks (the one that says flora moda and the triptych beneath that) on my home page are not scaling for mobile. I'd like them to scale down to fit on mobile. my site is floramoda.co password:flowers Thanks in advance for any help! Add to Home > Design > Custom CSS /* resize mobile image */ @media screen and (max-width:767px) { .homepage #page section:first-child { min-height: 20vh !important; } .homepage #page section:nth-child(2) { min-height: 30vh; } } 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!) Link to comment
tuanphan Posted November 21, 2020 Share Posted November 21, 2020 13 hours ago, DruH said: thank you so much!!! Do you want to center this image on mobile? 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!) Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.