Jump to content

Resize background video for mobile

Recommended Posts

Site URL: https://www.rawboxxjax.com/

Someone recently helped me with this code to resize my background video for mobile:

@media only screen and (max-width: 767px) {
  section[data-section-id="618ac6af8a8d056cfbcd66e0"] .sqs-video-background-native {
    height: auto;
  }

  section[data-section-id="618ac6af8a8d056cfbcd66e0"]  {
    min-height: 20vh !important;
  }
}

However, it now looks too small on mobile:

IMG_3480.jpg.b2aef40c2845efb944a1830f3d59d5e1.jpg

 

Can anyone help me fix this? Tia!!

Link to comment
  • Replies 1
  • Views 312
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Remove above & try this new code

@media only screen and (max-width: 767px) {
    section[data-section-id="618ac6af8a8d056cfbcd66e0"] video {
        width: 100% !important;
        height: 80% !important;
        left: 0 !important;
        top: 0 !important;
    }

    section[data-section-id="618ac6af8a8d056cfbcd66e0"] {
        min-height: 30vh !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

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.