Jump to content

Home page banner cropping on mobile

Recommended Posts

Add to Design > Custom CSS

/* Mobile-Resize top banner image */
@media screen and (max-width:640px) {
body.homepage img.js-page-banner-image {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
}
body.homepage .page-banner-wrapper.page-banner-has-image {
    height: 125px !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
6 hours ago, tuanphan said:

Add to Design > Custom CSS

/* Mobile-Resize top banner image */
@media screen and (max-width:640px) {
body.homepage img.js-page-banner-image {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
}
body.homepage .page-banner-wrapper.page-banner-has-image {
    height: 125px !Important;
}
}

 

Worked -- thank you!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.