Jump to content

Resizing Background Video for Mobile

Recommended Posts

  • Replies 6
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

9 hours ago, yodagerms said:

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

Hi! I have looked and scoured the internet but I cannot find a solution for this. A background video on the home page is severely cropped when playing on mobile. I have found CSS code to resize images, but not videos and not background videos specifically. Please help me!


Add to Design > Custom CSS

@media screen and (max-width:767px) {
[data-section-id="60c9576936ffab5dd961c323"] iframe {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
[data-section-id="60c9576936ffab5dd961c323"] img {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;

[data-section-id="60c9576936ffab5dd961c323"] {
    min-height: unset !important;
    height: 30vh;
    margin-top: 20vh;

div#block-yui_3_17_2_1_1623810957566_3840 {
    position: relative;
    top: -150px;


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

Hi thank you so much, but now it's not playing on my phone anymore, its just the static image. 😕

Also on the squarespace design page it shows the video is smaller than the static image and is in front of it. (See image) How do I make this cover the background?

Screen Shot 2021-08-24 at 7.59.02 PM.png

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.