Jump to content

Resizing Background Video for Mobile in CSS

Recommended Posts

1 hour ago, Daiglefan91 said:

Site URL: http://www.murrayhendersonart.com

If you check out my site at www.murrayhendersonart.com on mobile, the mp4 background video is cut off on the sides and I haven't been able to find the coding for css to fix it.  Please help its driving me insane!

is this the video on heading

image.thumb.png.71e78455efee2fd6e64570a325264baa.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
36 minutes ago, Daiglefan91 said:

Yes thats what I am trying to make smaller in the mobile version

Is it the result you want to achieve?

image.png.2d821d862d2feacbca5981e643440e1d.png

 

 

Edited by bangank36

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
15 minutes ago, Daiglefan91 said:

Ba, let me know when you have the code.  Many thanks!

 

 

You can add to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  section[data-section-id="616a44844ce3d463eaaae0a9"] video {
    width: 100% !important;
    height: auto !important;
  }

  section[data-section-id="616a44844ce3d463eaaae0a9"] {
    min-height: unset !important;
    margin-top: 100px;
  }
}

Let me know if it works properly on your site

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.