Gabatinie Posted May 27, 2021 Share Posted May 27, 2021 Site URL: https://www.humansinbetween.com.au/ Hi there, We are working on a group uni assignment and none of us are coders. Originally we had a banner image that was responsive but it kept being cut of depending what size you were looking at it. We wanted to constrain the proportions, because the graphic can't be cropped. One of my team members found a post for code to not crop the banner image: https://forum.squarespace.com/topic/22506-bedford-changing-the-banner-height/?fbclid=IwAR0ArUtAL0CMk9c8K9ZaZg3fOWHSvInfcifKyX_muI5EXknQ2xJR8DpaDtI But now it's not responsive. What can we do to fix this? Thanks so much. Link to comment
Gaal Posted May 28, 2021 Share Posted May 28, 2021 Hi there! I'm not a coder either, but it's my understanding that "being responsive" means that the web page, including the text and the images, are resized to fit the size of that particular browser window on that particular screen. Here's a site showing the wide variety of screen sizes: http://screensiz.es/ You can click around there to see smartphone sizes, tablet sizes, and desktop monitor sizes. It's pretty impossible to design an image that will work well on every single screen or browser window. That's why they came up with "responsive" designs for our web sites. We load in an image once, and Squarespace figures out what size to deliver that image on the fly. Other than that, I don't know how to add a graphic image that can't be cropped. If you make it a fixed, non-cropped size, then it will not be responsive. If it is responsive, it will definitely change sizes. I don't know if you can have it both ways. Hope you figure this out! 💜 tuanphan and creedon 2 Link to comment
tuanphan Posted May 28, 2021 Share Posted May 28, 2021 Add to design > Custom CSS /* Mobile-Home-Top banner */ @media screen and (max-width:640px) { body.homepage .banner-thumbnail-wrapper.has-description figure img { width: 100% !important; height: auto !important; left: 0 !important; } body.homepage .desc-wrapper { padding-top: 0; } body.homepage .banner-thumbnail-wrapper.has-description { height: 130px !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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment