Jump to content

Remove Padding/Margin (?) from Background Video

Recommended Posts

Posted (edited)

Site URL: https://crocodile-terrier-syp9.squarespace.com/video-background

EDIT: In case anyone finds this in the future looking for the same solution, here's what I ended up using:

  section[data-section-id="61dcab2afb782968f35fdb42"]{
    iframe{
    transform: scale(1.35) !important;
    }
  }

 

ORIGINAL QUESTION: I want to use the background video feature in one of my sections. It looks great in full screen on the desktop, but reducing the window size or viewing on mobile adds black bars above and below the video as seen in the sample page images below (or directly at https://crocodile-terrier-syp9.squarespace.com/video-background pw: forum). This bar is NOT part of the video, but some sort of margin or padding added responsively. Is there any way to make sure the video is always 100% of the height of the section (i.e., the height would always be equal to the section height and the width would be cropped)?

Captuire_FullScreen.thumb.JPG.fce393d8537e4497ab1d6277278d3da7.JPG

Capture_HalfScreen.thumb.JPG.f4b06445f415dd96c54b4c0d757714b8.JPGCapture_MobilePreview.thumb.JPG.c443f69fcceb5f3a69e42acba753e713.JPG

Edited by AllenWroteOn
  • Replies 3
  • Views 593
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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.