Jump to content

Resizing videos for mobile

Recommended Posts

On 1/17/2022 at 3:00 PM, Gersh said:

Try adding to Design > Custom CSS

/* Children of Zion video mobile */
@media screen and (max-width:767px) {
    [data-section-id="61dd996503aa4d2628fc5ae3"] video {
        width: 100% !important;
        height: auto !important;
        left: 0 !important;
    }
     [data-section-id="61dd996503aa4d2628fc5ae3"] {
         min-height: unset !important;
         height: 35vh;
     }
}

 

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
On 1/21/2022 at 4:22 PM, Gersh said:

Thanks a lot! That works, will the same code work for the video at the bottom of the page as well?

With video in another section, replace with new section id, use this tool to find id.

https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

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.