Jump to content

Resizing video for mobile

Recommended Posts

Site URL: https://www.justinphang.com/google-ugh-moments

Hi there,

The problem I'm trying to solve is the 16:9 videos appear small in my website's mobile view.

Is there a way to tweak the embedded videos to be more of a 1:1 or 4:3 ratio before tapping? Tapping it will still play the video in it's actual aspect ratio.

Edited by justin_phang

Learning something new everyday

Link to comment

Add to Google ugh moments page Settings > Advanced > Header

<style>
/* resize video */
@media screen and (max-width:640px) {
.video-block .intrinsic-inner {
    padding-bottom: 100% !important;
}
}
</style>

 

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
On 10/3/2020 at 4:08 PM, tuanphan said:

Add to Google ugh moments page Settings > Advanced > Header


<style>
/* resize video */
@media screen and (max-width:640px) {
.video-block .intrinsic-inner {
    padding-bottom: 100% !important;
}
}
</style>

 

Same... I just realize this requires premium feature. Any chance this can be achieved with the generic CSS style tab?

Learning something new everyday

Link to comment
22 minutes ago, justin_phang said:

Same... I just realize this requires premium feature. Any chance this can be achieved with the generic CSS style tab?

With Personal Plan: Edit Page > Add Code Block > Paste above code

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
  • 4 months later...
  • 1 year later...
On 4/28/2022 at 4:37 AM, pituca said:

Why am I getting a syntax error for this?

You need to add that code to Page Header. If you add to Custom CSS, it will say syntax error

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.