Jump to content

Remove padding around video block

Recommended Posts

8 hours ago, Rsfxm said:

http://butterworthcollective.com/

When you scroll down, its the 14 videos I want to have no space between.  

Add to Home > Design > Custom CSS

div#page-section-5eb2d5fa5e3a476e77792068 .video-block {
    padding: 0 !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
12 hours ago, Rsfxm said:

Follow up question. Can I take the text below each of those videos, and have it on the video itself?

Remove text? add this to Home > Design > Custom CSS

div#page-section-5eb2d5fa5e3a476e77792068 .video-block .video-caption {
    visibility: hidden;
}

 

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
  • 2 years later...
On 3/9/2023 at 11:52 AM, KarlisVisuals said:

Hi Guys!

I need help. I am uploading a video at 3840 × 1634 aspect ratio and Squarespace is creating me the white bars on the video block. Is there any chance on removing it so it would look way better in the page?

Thank you!

Screen Shot 2023-03-09 at 2.51.51 pm.png

What is Motion page url?

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
17 hours ago, KarlisVisuals said:

Hi!

Thanks in advance! 

It is a video block, that seems to have 16:9 aspect ratio, however I exported the video in 2:35

https://www.karlisvisuals.com/motion

Try adding to Design > Custom CSS

div#block-a7d8a96307186ea9b4b3 .sqs-native-video .native-video-player {
    padding-top: 45% !important;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}
body {
    overflow-x: hidden;
}

 

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
  • 2 weeks later...
23 hours ago, NickParente said:

Hey @tuanphan, having this issue with videos on 7.0. I tried adapting what you wrote but I'm no coder and it doesn't seem to be doing anything:
 

div#collection-641c844c4e6aa16b06b34445 .video-block {
    padding: 0 !important;
}

 

Any help? For reference this is the page I'm working on: https://www.nickparente.work/the-furrow

 

Thanks for any help you can provide!

Try this

body#collection-641c844c4e6aa16b06b34445 .video-block {
    padding: 0 !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 3/26/2023 at 12:45 PM, NickParente said:

Hmm that didn't seem to work either. Attached an image of how I pasted the code- is this correct? 

Screenshot 2023-03-26 at 1.44.47 AM.png

Yes. Right. If it doesn't work, keep the code in CSS box and let me know, I can check it again easier

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...
On 8/21/2023 at 1:09 PM, BUROM said:

Hi @tuanphan this code didn't work for me... How can I make this a rule for the whole website to have 0 padding around the native video blocks.

 

Website https://shallot-octahedron-m3zj.squarespace.com/work/pauline-nguyen

Password BURO-EMMIKO

 

 

Screen Shot 2023-08-21 at 4.06.23 pm.png

That code for Classic Editor Section only, it won't work on Fluid Engine.

You mean reduce these space?

image.thumb.png.5a44594179e86178e5dffd7331bcc092.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

@tuanphan I actually refer to the padding that is visible when using the video blocks.  I want the video block to be perfectly aligned with the gallery sections below ( see images below for reference ) 

ScreenShot2023-08-23at2_05_40pm.thumb.png.082abc392a1ab2461b9c47f4d26f5c5b.pngScreenShot2023-08-23at2_05_35pm.thumb.png.c88194177b62b3d552277562499f2699.png



I did find a solution to work around this.. by using a new section  and set the background to video and set the setting to inset. However this does add extra whitespace at the bottom for this section. How can I remove/ reduced the highlighted section in blue

image.thumb.png.9001bfd915de9136cf1098636905fe93.png

Link to comment
  • 1 month later...

Hey folks

Been having a gander through the topic and I'm having similar issues to what some of the people here are having but not quite the same

Right now I have a video with a static image in it that I need to match up to an image block below. I can get pretty close but I can't get rid of the thin gap between the 2. Any ideas on how to get rid of this?

Using some of the advice given here, I've set the padding and margin for both image and video blocks to 0 (I think, my understanding of CSS is trash) but no joy. 

Any suggestions?

 

TheProblem.JPG

CSS.JPG

Link to comment
On 10/20/2023 at 4:37 AM, RossD said:

Hey folks

Been having a gander through the topic and I'm having similar issues to what some of the people here are having but not quite the same

Right now I have a video with a static image in it that I need to match up to an image block below. I can get pretty close but I can't get rid of the thin gap between the 2. Any ideas on how to get rid of this?

Using some of the advice given here, I've set the padding and margin for both image and video blocks to 0 (I think, my understanding of CSS is trash) but no joy. 

Any suggestions?

 

TheProblem.JPG

CSS.JPG

Can you share link to this page?

You can also consider using negative value, for example

margin-top: -10px !important;

(or margin-bottom)

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...

Hi, I'm having trouble removing the padding from one of my video blocks. I copy pasted the code that you all suggested but it doesn't seem to be working. I want the edges of the video to be round and for that to work, I have to remove the padding. Could somebody please help?

image.thumb.png.6c00ea5fa233f7064d8d380c87091531.png

 

Link to comment
On 3/6/2024 at 12:29 PM, WasteLess said:

Hi, I'm having trouble removing the padding from one of my video blocks. I copy pasted the code that you all suggested but it doesn't seem to be working. I want the edges of the video to be round and for that to work, I have to remove the padding. Could somebody please help?

image.thumb.png.6c00ea5fa233f7064d8d380c87091531.png

 

Can you share link to this page? We can check easier

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.