mikescottlondon Posted May 9, 2020 Share Posted May 9, 2020 Site URL: https://www.mike-scott.co.uk Hi, I'm creating a site on desktop and since it's a portfolio that's the main way it should be viewed, but if people do view it on mobile i'd rather it just reduced everything rather than be responsive in the way it currently works, i.e. cropping and moving things, but not resizing. I don't have an issue with the index page or the profile page and the way it adjusts for mobile, but If you click in to a project page for example https://www.mike-scott.co.uk/projects/studio-ageli you will see how, on smaller screens, it just crops into the images, so you lose a lot horizontally of course, but not vertically. All it would need is a way to constrain the proportions, either entirely or to a greater degree. I don't know if I'm describing this clearly, but one other way I was thinking of it is that, below lets say 1000px, for a project page, ideally it would resize each element to the width, and stack the elements like it currently does, whether image, text or space. So on a tall thin device like a mobile you'd see 3/4/5 images and text all at the same time. I'm not a coder, so if anyone can help or suggest ways to solve this problem please have a look. Any ideas? New to squarespace... thanks in advance! Mike Link to comment
tuanphan Posted May 10, 2020 Share Posted May 10, 2020 Have you solved yet? 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
mikescottlondon Posted May 10, 2020 Author Share Posted May 10, 2020 hi, no, not yet, suggestions welcome 🙂 Link to comment
tuanphan Posted May 10, 2020 Share Posted May 10, 2020 Try adding to Project Page Settings > Advanced > Header <style> @media screen and (max-width:767px) { section.has-background { min-height: 40vh !important; } } </style> 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
mikescottlondon Posted May 10, 2020 Author Share Posted May 10, 2020 Brilliant – thanks @tuanphan for solving this. I played around a bit and settles on 25vh for the min height. Works perfectly! Link to comment
sjet Posted May 21, 2020 Share Posted May 21, 2020 On 5/10/2020 at 9:42 AM, tuanphan said: Try adding to Project Page Settings > Advanced > Header <style> @media screen and (max-width:767px) { section.has-background { min-height: 40vh !important; } } </style> UPDATE: On the suggestion of SqS Live Chat support, I changed the banner to an image block. With Tuan's code in place (Design > Custom CSS), the desktop image still gets cropped (client finds any cropping completely unacceptable). Who has an answer for this?! Tuan, On my site, without your code, the desktop banner image renders properly but the mobile gets cropped. When I use your code in Design > Custom CSS, the mobile banner image is correct (image 1, below), but the desktop banner image is cropped (image 2) unless the browser window is pulled into a long rectangle (image 3). Please note, these are not Project Pages! This banner image was added to a blank page. The code has the same effect whether banner image is on the homepage (named Gallery) or on just a plain page (named Gallery Blotto). https://alleycatsphotos.com k1ttyc@T Can you help, please? Thanks! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.