Jump to content

Remove padding around videos?

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://www.nickwaldinger.com/branding

Hello,

I have several videos being used on my website (linked from Vimeo), but they don't line up flush with pictures above and below them (see screenshot attached). I would like to adjust the padding on all sides of the video to match the pictures above and below it. 

Here is a link to the page I am referring to specifically: https://www.nickwaldinger.com/branding

Thank you!

Screen Shot 2022-09-14 at 11.28.59 AM.png

Link to comment
  • Replies 19
  • Views 4.3k
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 year later...
On 11/21/2023 at 11:14 AM, KatieSSHelp said:

Hi,

I'm having a similar problem where I'm getting too much padding below a vimeo video. Here is the link, could you please let me know what I could do fix it? 

https://www.learnaslead.com/home-3

Thanks so much!

Try adding this code to Website > Website Tools (under Not Linked) > Custom CSS

/* Vimeo padding */
.fe-655c288c15482d39e3555851 {
    grid-template-rows: repeat(23,minmax(calc(~"var(--container-width) * var(--row-height-scaling-factor)"), auto)) !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!)

Link to comment
  • 4 months later...
  • 2 months later...
22 hours ago, maboli said:

Hi, I want to have no padding around my video, I have tried the above but it doesn't seem to work.

I would also like to align the 'Email Address ' text on the Newsletter in the footer to the left of the field?

https://helicon-cardioid-tcx8.squarespace.com/about
studionh_ap

You can use this code to Custom CSS

footer.sections input.newsletter-form-field-element {
    padding-left: 0px !important;
}

image.png.fc9a71d004bdbcd2adc585bfc86fdb1f.png

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 7/9/2024 at 11:37 PM, maboli said:

Thank you, do you have a solution for the video padding at the top and bottom, I have found some old code for the width now.

 

 

 

I don't see video now. Can you check it again?

https://helicon-cardioid-tcx8.squarespace.com/about

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

I'm having similar issues here. I don't want any padding (right and left) around my video and I've tried all sorts of code to fix but it just ends up showing at the top of the page and not changing the video margin/padding. Please help! Thank you.

https://www.clarethibeau.com/services

I tried this:

div#block-yui_3_17_2_1_1718914272022_36865 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

Link to comment
15 hours ago, KBrandStudio said:

I'm having similar issues here. I don't want any padding (right and left) around my video and I've tried all sorts of code to fix but it just ends up showing at the top of the page and not changing the video margin/padding. Please help! Thank you.

https://www.clarethibeau.com/services

I tried this:

div#block-yui_3_17_2_1_1718914272022_36865 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

Try this CSS code

div#block-yui_3_17_2_1_1718914272022_36865 video {
    object-fit: cover !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!)

Link to comment
On 7/25/2024 at 1:58 AM, KBrandStudio said:

Thank you @tuanphan. I put that code in and it ended up making the video really wide but cropped (video is in iPhone proportions). You can see the video here: https://www.clarethibeau.com/services. See the attached image for the blue area that's around the video. I'd rather have it just fit to the video because then on mobile I can make it bigger. Thanks!image.thumb.png.b5b1e36a4023ea5c6cc736b76632e72d.png

So you want video fit in blue area, but on desktop 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
  • 3 weeks later...

@tuanphan or anyone that would be able to clarify this. My client wants zero padding around the video and squarespace is automatically putting a lot of padding on right and left and I can't scale the video up on mobile because of this. My client is also wondering if we can crop vertically on the video so that it isn't so tall. Thanks for any help! I'm really needing to figure this out :). 

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.