Jump to content

Embed vertical video without huge black borders?

Recommended Posts

Posted (edited)

So, I want to embed an up-loaded/local  vertical video, but videos are only presented in portrait format, making the vertical video tiny with massive borders. Looks silly and unprofessional, in contrast to the rest of my SS website (See: https://www.guyriddihough.com). There is a fix where I can add some code to the CSS panel for my site (see: https://bycrawford.com/blog/how-to-add-a-vertical-video-on-squarespace). Here is the code:

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

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

padding-bottom: 100% !important;

}

However, when I add this code (and nothing else) to the CSS panel (in the Design section) nothing changes for the video. I am failing to do something. Do I have to specify the page where the video is present? Or something else? As you can already guess, I know nothing about coding websites. (That's why I am a SquareSpacer.) Any help would be very gratefully received...

Griddiho (the Noob)

 

 

Edited by Griddiho
Added https://www.guyriddihough.com
  • Griddiho changed the title to Embed vertical video without huge black borders?
  • Replies 5
  • Views 2.8k
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...
Posted
On 6/7/2023 at 2:02 PM, Griddiho said:

So, I want to embed an up-loaded/local  vertical video, but videos are only presented in portrait format, making the vertical video tiny with massive borders. Looks silly and unprofessional, in contrast to the rest of my SS website (See: https://www.guyriddihough.com). There is a fix where I can add some code to the CSS panel for my site (see: https://bycrawford.com/blog/how-to-add-a-vertical-video-on-squarespace). Here is the code:

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

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

padding-bottom: 100% !important;

}

However, when I add this code (and nothing else) to the CSS panel (in the Design section) nothing changes for the video. I am failing to do something. Do I have to specify the page where the video is present? Or something else? As you can already guess, I know nothing about coding websites. (That's why I am a SquareSpacer.) Any help would be very gratefully received...

Griddiho (the Noob)

 

 

Try this code

.native-video-player.video-player {
    padding-bottom: 100% !important;
}

 

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!)

  • 2 months later...
Posted

hi! I just tried this and it worked for my video so thank you! However, it did make any text added next to it have an incredibly long text box that basically makes a large gap under the video before whatever comes next on my page. It doesn't show the gap on mobile, only desktop but won't let me make the text box smaller despite there being no text there. Thoughts? 

 

Posted
15 hours ago, KP11 said:

hi! I just tried this and it worked for my video so thank you! However, it did make any text added next to it have an incredibly long text box that basically makes a large gap under the video before whatever comes next on my page. It doesn't show the gap on mobile, only desktop but won't let me make the text box smaller despite there being no text there. Thoughts? 

 

Can you share link to page where you have problem?

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!)

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.