Jump to content

Change aspect ratio of single video

Go to solution Solved by Ziggy,

Recommended Posts

Hi all,

Does anyone know how to change the aspect ratio of just one video block?

I've managed to change the ratio of all videos with this code:

.sqs-native-video .native-video-player {

    padding-top: 30% !important;

}

but when I try to direct it at one block (I used #block-83411e5704c79262fddc) it just changes the actual padding and moves the video down the page.

Can anyone point out what I'm doing wrong?!

 

I'm trying to change the top video on the page highriselandscapes.org/exhibition-copy to double-widescreen.

First screenshot is how it looks now; second one is how I want it to look; third is how the other video on the page goes wrong with the code I tried. 

Screenshot 2022-12-07 at 15.21.01.png

Screenshot 2022-12-07 at 15.21.55.png

Screenshot 2022-12-07 at 15.22.03.png

Link to comment
  • Solution

Try this Custom CSS:

section[data-section-id="63909e34884caf2f0c7b2a83"] {
  .sqs-native-video .native-video-player {
    padding-top: 30%;
  }
}

Let me know if that works!

Please like and upvote if my comments were useful to you. Thanks!

Zygmunt Spray
Squarespace Website Designer
Contact me: https://squarefortytwo.com/ 
🔌Ghost Squarespace Plugins (Referral link)
Buy me a coffee

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.