Jump to content

Resizing hero image on Foster template for mobile

Go to solution Solved by Bethme25,

Recommended Posts

Hi guys, I am using a hero image on my homepage that works well on desktop. I've tried to resize it for mobile use which I've managed but there are two issues I'm trying to tackle with the mobile display:

1) there is a big space between the hero image and text that I want to remove

image.png.441b362b16d00301f254d4ad3058848d.png

2) I was hoping I could get the hero image to scroll on the mobile phone, as it does on desktop: https://www.bethedwardsnutrition.com/

 

Any help gratefully received thank you!

 

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Use this new CSS code

@media screen and (max-width: 640px) {
    body.homepage .Parallax-item:first-child img {
        width:100% !important;
        height: auto !important;
        left: 0 !important;
        top: 0 !important;
    }
    section#hero-image-foster {
        height: 200px;
    }
    section#hero-image-foster .spacer-block, section#introduction .spacer-block {
        display: none;
    }
}

 

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

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.