Jump to content

Resize Video for mobile view

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

On 2/24/2022 at 2:20 AM, SethF said:

Site URL: http://Scrambledapparel.com

I have had trouble resizing the video on my home page to fit in mobile view. I've used some css from another video to resize the images for mobile view but I've had no luck finding code to resize my video.

Add to Design > Custom CSS

/* Mobile resize home video */
@media screen and (max-width:767px) {
[data-section-id="61a7e28062079629f1554acd"] video {
    width: 100% !important;
    left: 0 !important;
    height: auto !important;
}
[data-section-id="61a7e28062079629f1554acd"] {
    min-height: unset !important;
    height: 30vh;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.