cvanuch Posted July 29, 2020 Share Posted July 29, 2020 (edited) Site URL: https://matey.app Hi, I'm trying to figure out how to make my iPhone pictures smaller on mobile so they aren't full-width. I want them to appear smaller like the Apple website example attached. I don't want to change the padding of the underlying text, just the iPhone. Does anyone know how to do this? My site is on Squarespace 7.1. Thanks! Edited July 30, 2020 by cvanuch Link to comment
tuanphan Posted July 31, 2020 Share Posted July 31, 2020 (edited) Add to Home > Design > Custom CSS /* resize image on mobile */ @media screen and (max-width:767px) { .homepage .image-inset { width: 70%; margin: 0 auto; } } Edited August 1, 2020 by tuanphan update code 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
cvanuch Posted August 1, 2020 Author Share Posted August 1, 2020 @tuanphan Looks good, is there a way to exclude adjusting the text underneath the phone screen? Also, is there a way to exclude adjusting the app icon photo? Link to comment
tuanphan Posted August 1, 2020 Share Posted August 1, 2020 New code /* resize image on mobile */ @media screen and (max-width:767px) { .homepage .image-inset { width: 70%; margin: 0 auto; } /* Exclude app icon */ div#block-yui_3_17_2_1_1595994896451_10296 .image-inset { width: 100% !important; } } 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
cvanuch Posted August 20, 2020 Author Share Posted August 20, 2020 @tuanphan Thanks, looks good! Is there a way to exclude poster image blocks? Poster images are currently affected, causing the image to display incorrectly like the screenshot below. Do you also know how to apply the same border-radius of 30px to poster image blocks on mobile? It looks like the corner radius goes away on the phone. 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