kinglear Posted October 25, 2021 Share Posted October 25, 2021 Site URL: https://disc-cone-hl9f.squarespace.com/ Hi, Our website is starting to really come together thanks to all the help on the forums. One thing I'm having an issue with and can't seem to find a fix for is landscape view on mobile. Our home page has a background image with our logo as another image sitting on top. This resizes perfectly to mobile when held in portrait but if I turn the phone sideways to landscape the logo image fits the screen width ways but cuts the top and bottom off and looks really messy. Is there a way round this - i.e to force it to display the image resized to fit the height of the phone screen and not the width? pass : kinglear Many thanks. Link to comment
Beyondspace Posted October 25, 2021 Share Posted October 25, 2021 (edited) 1 hour ago, kinglear said: Site URL: https://disc-cone-hl9f.squarespace.com/ Hi, Our website is starting to really come together thanks to all the help on the forums. One thing I'm having an issue with and can't seem to find a fix for is landscape view on mobile. Our home page has a background image with our logo as another image sitting on top. This resizes perfectly to mobile when held in portrait but if I turn the phone sideways to landscape the logo image fits the screen width ways but cuts the top and bottom off and looks really messy. Is there a way round this - i.e to force it to display the image resized to fit the height of the phone screen and not the width? pass : kinglear Many thanks. Do you mean zooming in your image when landscape on mobile view? Edited October 25, 2021 by bangank36 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
kinglear Posted October 25, 2021 Author Share Posted October 25, 2021 (edited) Not really. I'm referring to the logo image element (the ear dude and the King Lear) rather than the background image it's sitting on top of (they're 2 different blocks). I mean, when I rotate my phone to landscape mode the logo image is stretched to the width of the screen, which makes the top and bottom of the screen cut it off. Ideally I would love for the image to be resized to fit the top and bottom of the screen, making it smaller and therefore being able to see the whole logo image. Hope that makes sense! Edited October 25, 2021 by kinglear Link to comment
tuanphan Posted October 27, 2021 Share Posted October 27, 2021 On 10/25/2021 at 10:40 PM, kinglear said: Not really. I'm referring to the logo image element (the ear dude and the King Lear) rather than the background image it's sitting on top of (they're 2 different blocks). I mean, when I rotate my phone to landscape mode the logo image is stretched to the width of the screen, which makes the top and bottom of the screen cut it off. Ideally I would love for the image to be resized to fit the top and bottom of the screen, making it smaller and therefore being able to see the whole logo image. Hope that makes sense! Add to Design > Custom CSS @media screen and (max-width:767px) and (orientation:landscape) { div#block-8e3f39d0b0c1b95def54 { width: 30%; margin: 0 auto; } } kinglear 1 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
kinglear Posted October 27, 2021 Author Share Posted October 27, 2021 @tuanphan to the rescue again. Top work, thanks. 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