lulu.lindberg Posted April 9, 2021 Share Posted April 9, 2021 Site URL: https://www.kelseynaef.com/k-plus-t-forever I'd like to have the whole index gallery featured at the top of the page to scale down on mobile to decrease the chances of the illustrated text "KELSEY & TRAVIS" being cut off on mobile devices. I have an older iphone so it looks fine on my phone, but on most newer phones, it's getting cut off. Ideally, the height of the gallery is decreased, and the image scales proportionally within it and stays centered, but I'm having trouble making this happen. Any help would be great, thanks. Lauren Beyondspace 1 Link to comment
Beyondspace Posted April 11, 2021 Share Posted April 11, 2021 On 4/9/2021 at 6:36 PM, lulu.lindberg said: Site URL: https://www.kelseynaef.com/k-plus-t-forever I'd like to have the whole index gallery featured at the top of the page to scale down on mobile to decrease the chances of the illustrated text "KELSEY & TRAVIS" being cut off on mobile devices. I have an older iphone so it looks fine on my phone, but on most newer phones, it's getting cut off. Ideally, the height of the gallery is decreased, and the image scales proportionally within it and stays centered, but I'm having trouble making this happen. Any help would be great, thanks. Lauren try if this help @media only screen and (max-width: 640px) { #kplust .Index-gallery-wrapper { height: 30vh !important; } #kplust .Index-gallery-wrapper .Index-gallery-item { height:100% !important; } #kplust .Index-gallery-wrapper .Index-gallery-item-image { background-color: #fff; } #kplust .Index-gallery-wrapper .Index-gallery-item-image img { left: auto !important; width: auto !important; height: 100% !important; } } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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
lulu.lindberg Posted April 11, 2021 Author Share Posted April 11, 2021 (edited) 3 hours ago, bangank36 said: try if this help @media only screen and (max-width: 640px) { #kplust .Index-gallery-wrapper { height: 30vh !important; } #kplust .Index-gallery-wrapper .Index-gallery-item { height:100% !important; } #kplust .Index-gallery-wrapper .Index-gallery-item-image { background-color: #fff; } #kplust .Index-gallery-wrapper .Index-gallery-item-image img { left: auto !important; width: auto !important; height: 100% !important; } } Thanks for your help - This scales down the image and works, but it's not really what I was looking to achieve. It also seems to misalign the image, so it's no longer centred. I don't want it scaled down to view the whole image, because then the illustrated text is quite small on mobile. I just want it scaled so that the words in the middle don't get cropped off - I figure there has to be some way to decrease the max height of the gallery page and have the image scale proportionally and stay centered? @bangank36 Edited April 11, 2021 by lulu.lindberg Link to comment
Beyondspace Posted April 12, 2021 Share Posted April 12, 2021 8 hours ago, lulu.lindberg said: Thanks for your help - This scales down the image and works, but it's not really what I was looking to achieve. It also seems to misalign the image, so it's no longer centred. I don't want it scaled down to view the whole image, because then the illustrated text is quite small on mobile. I just want it scaled so that the words in the middle don't get cropped off - I figure there has to be some way to decrease the max height of the gallery page and have the image scale proportionally and stay centered? @bangank36 Hope some other contributor can help you out BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment