Jump to content

Changing Aspect Ratio of Video on Mobile

Recommended Posts

Hello,

How would I change the aspect ratio to 9:16 for a video on mobile and have it not changed for the desktop view?

Below is a picture of the website on mobile view. I would like the video to fill up the screen with a 9:16 aspect ratio without affecting the view on desktop. 

Thanks!

Screenshot 2024-04-26 at 2.31.53 PM.png

Link to comment
  • Replies 5
  • Views 324
  • Created
  • Last Reply

Top Posters In This Topic

8 hours ago, tuanphan said:

Where is video? I don't see it on homepage

Hey Tuan,

We had to change it to a gallery as we are a restaurant that uses the website frequently. I have changed it to the video for you to see. 

Kind regards,

Link to comment
On 5/2/2024 at 12:12 AM, JamesPH said:

Hey Tuan,

We had to change it to a gallery as we are a restaurant that uses the website frequently. I have changed it to the video for you to see. 

Kind regards,

You can use this code to Website > Website Tools > Custom CSS

@media screen and (max-width:767px) {
[data-section-id="6633c13a22e830244667eb2b"] {
    min-height: unset !important;
    height: 100vh;
}
}

 

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.