Jump to content

Mobile Image Crop on Intro Banner

Recommended Posts

On 9/16/2022 at 9:12 AM, middleg said:

Yes, that one. I have been playing with it and I think it might be closer to fixed. Let me know if you can help out.

I see you solved with this code?

@media screen and (max-width: 640px) {
    .homepage .section-background img {
        width:100% !important;
        height: auto !important
    }
}
@media screen and (max-width: 640px) {
    .homepage #page section:first-child {
        min-height:20vh !important;
        height: 23vh;
        margin-top: 9vh
    }
}

You can also remove both & use this

@media screen and (max-width: 767px) {
    .homepage #page section:first-child {
        min-height:unset !important;
        height: 30vh;
    }
}

 

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
On 9/19/2022 at 5:28 AM, tuanphan said:

I see you solved with this code?

@media screen and (max-width: 640px) {
    .homepage .section-background img {
        width:100% !important;
        height: auto !important
    }
}
@media screen and (max-width: 640px) {
    .homepage #page section:first-child {
        min-height:20vh !important;
        height: 23vh;
        margin-top: 9vh
    }
}

You can also remove both & use this

@media screen and (max-width: 767px) {
    .homepage #page section:first-child {
        min-height:unset !important;
        height: 30vh;
    }
}

 

thanks so much. I'm just working on pushing the banner below the header, but this helps clean everything up. Appreciate your help.

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.