HobbesEdits Posted November 14, 2021 Share Posted November 14, 2021 Site URL: https://www.hobbessakugamerch.com/ Hi, I'm wondering how I can scale my banner image on my homepage so it appears properly on an iPad/tablet. Right now the image is heavily cropped when viewing it on an iPad. Example: I've already injected some code that makes it appear properly on mobile devices. Here's what the same page looks like on mobile: Here's the code I injected to make that work: <style> @media screen and (max-width:767px) { .gallery-fullscreen-slideshow[data-width="full-bleed"] { height: 22vh !important; } } </style> So I'm wondering how I can get that effect, which automatically scales the banner down on mobile devices, to work on tablets. Thanks! Link to comment
Beyondspace Posted November 15, 2021 Share Posted November 15, 2021 20 hours ago, HobbesSakuga said: Site URL: https://www.hobbessakugamerch.com/ Hi, I'm wondering how I can scale my banner image on my homepage so it appears properly on an iPad/tablet. Right now the image is heavily cropped when viewing it on an iPad. Example: I've already injected some code that makes it appear properly on mobile devices. Here's what the same page looks like on mobile: Here's the code I injected to make that work: <style> @media screen and (max-width:767px) { .gallery-fullscreen-slideshow[data-width="full-bleed"] { height: 22vh !important; } } </style> So I'm wondering how I can get that effect, which automatically scales the banner down on mobile devices, to work on tablets. Thanks! Hi, You can try adding to Home > Design > Custom Css @media only screen and (min-width: 768px) and (max-width: 1024px) { section[data-section-id="600299ec655a78118b8ecb77"] img { height: auto !important; } section[data-section-id="600299ec655a78118b8ecb77"] .content-wrapper { height: 33vh !important; } } Let me know how it works on your site Press 👍 or mark this answer as solution to help another one too BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
HobbesEdits Posted November 15, 2021 Author Share Posted November 15, 2021 Thank you! 4 hours ago, bangank36 said: Hi, You can try adding to Home > Design > Custom Css @media only screen and (min-width: 768px) and (max-width: 1024px) { section[data-section-id="600299ec655a78118b8ecb77"] img { height: auto !important; } section[data-section-id="600299ec655a78118b8ecb77"] .content-wrapper { height: 33vh !important; } } Let me know how it works on your site Press 👍 or mark this answer as solution to help another one too Thank you! That worked 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