Jump to content

Video Padding on Mobile Viewing

Recommended Posts

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

Hello, 

I have pasted the following custom css to prevent my homepage banner video resizing on mobile.  I am left, however, with some padding left and right (see screenshot).  

Does anyone know how I might remove this in order that the video is full width?  

The site is vanity brothers.com, password 'vanity'.  

Thank you, Katie

 

@media screen and (max-width: 640px) {
    body.homepage .Parallax-item:first-child iframe {
        width: 100% !important;
        left: 0 !important;
        height: auto !important;          inset: unset !important;
        top: 0 !important;
        height: 200px !important;
    }
  
body.homepage .Parallax-item:first-child figure.Index-page-image.loaded {
    transform: unset !important;
    bottom: 0 !important;
    height: 200px !important;
}
section#vanity-brothers-showreel {
    height: 200px !important;

  }}

Screen Shot 2022-06-24 at 11.56.49.png

Link to comment
  • Replies 2
  • Views 149
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Edit this code

body.homepage .Parallax-item:first-child iframe {
    width: 100% !important;
    left: 0 !important;
    height: auto !important;
    inset: unset !important;
    top: 0 !important;
    height: 200px !important;
}

to this new code

body.homepage .Parallax-item:first-child iframe {
    width: 100% !important;
    left: 0 !important;
    height: auto !important;
    inset: unset !important;
    top: 0 !important;
    height: 200px !important;
    transform: scale(1.5);
}

(I added transform scale)

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.