Jump to content

Changing video aspect ratio to display at 1280x200 px (or equivalent aspect ratio)

Go to solution Solved by Ziggy,

Recommended Posts

I created a banner video that is 1280x200px. I want it to autoplay and loop. As the default layout for a video is a 16:9 format, it's got way too much vertical negative space at top and bottom.  I've seen plenty of tutorials on how to extend the video player to be taller (i.e., bump up the bottom padding in the CSS), I have not seen how to make the player SHORTER.

Pass is interactive4546 if you want to view. I did export this video as an animated gif and it looked like garbage. The video is just much cleaner. (It was created in Adobe animate and it's not totally done)

As you can see from screenshot, I want to eliminate all the rows above and below the actual video. Also, as long as I'm asking, I only want to apply this viewing rule to this particular video. The ID (I think) is yui_3_17_2_1_1701727301187_423. I have a hard time telling if the id tag ends in 420, 421, 422, or 423 as they are all part of the same section. (Any help there would be great too...)

TIA for your help!

Kerstin

image.thumb.png.ea24be3c25852ab2f33195ec78294465.png

Link to comment
  • Replies 9
  • Views 2.8k
  • Created
  • Last Reply

Top Posters In This Topic

Can you share your website URL and this page?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • Solution

Try this Custom CSS and then adjust the video on the page:

#block-yui_3_17_2_1_1701724494683_1503 .sqs-native-video .native-video-player {
    padding-top: 15.625%;
}

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
4 hours ago, kdiehn said:

THANK YOU! This worked like a charm 🙂

No problem, thanks for marking my post as the solution!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • 4 months later...
16 hours ago, Jaimesteiger said:

Hi there, I'm having the same issue. My video is more narrow than 16:9. Can you advise where I can add that CSS?

My site is: https://paddlefish-sturgeon-az7l.squarespace.com/config/pages

 

The site is private, you can follow this to share url correct way

 

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 5/10/2024 at 10:00 PM, Jaimesteiger said:

My site is now public - jaimesteiger.com. I'd love to understand how remove the extra negative space that the site ads so I can have equal spacing between videos and other images.

 

Which space are you referring to? I see space on above footer only

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.