Jump to content

How to change background video size and avoid cropping on mobile? 7.0 version

Recommended Posts

Add the Code on Design > Custom CSS

@media(max-width: 767px) {
  #montage{
    min-height: 40vh !important;
  }
}

 

Screenshot_39.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
On 5/30/2022 at 11:07 PM, Napalm said:

@Web_Solutions Thanks! The video size looks much better but the video continues to crop even further in. Is there a way to get it back to its original picture without the crop while remaining at this size?

Screen Shot 2022-05-30 at 9.05.45 AM.png

Screen Shot 2022-05-30 at 9.04.57 AM.png

Edit this code

@media screen and (max-width: 640px) {
    body.homepage .Parallax-item:first-child iframe {
        width:100% !important;
        height: 100% !important;
        left: 0 !important
    }

    body.homepage .Parallax-item:first-child figure {
        transform: unset !important;
        bottom: 0 !important;
    }
}

to this

@media screen and (max-width: 640px) {
    body.homepage .Parallax-item:first-child iframe {
        width:100% !important;
        height: 100% !important;
        left: 0 !important;
    }
    body.homepage .Parallax-item:first-child figure {
        transform: unset !important;
        bottom: 0 !important;
    }
section#montage {
    min-height: 25vh !important;
}
}

Then save & reload the site

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

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.