Jump to content

Making our banner image responsive

Recommended Posts

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
  • Replies 2
  • Views 544
  • Created
  • Last Reply

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! 💜

Link to comment

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.