Jump to content

Remove White Space (Padding?) Under Native Video

Recommended Posts

Hello! I need to remove the white space under the video player. When I hover over the video that's where the UI controls are. See screenshots. I would like to remove this space for all native videos that I add to the site. The top "image" is the video in these screenshots.Screenshot2024-07-16at11_21_03PM.thumb.png.cf920cfe390412c37f4d05487b8643f1.pngScreenshot2024-07-17at12_53_56AM.png.71649ef54a7e8531451b66c4a9429f71.png

Link to comment
  • Replies 8
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

49 minutes ago, quarterpastcait said:

Hello! I need to remove the white space under the video player. When I hover over the video that's where the UI controls are. See screenshots. I would like to remove this space for all native videos that I add to the site. The top "image" is the video in these screenshots.Screenshot2024-07-16at11_21_03PM.thumb.png.cf920cfe390412c37f4d05487b8643f1.pngScreenshot2024-07-17at12_53_56AM.png.71649ef54a7e8531451b66c4a9429f71.png

Can you share your URL here so we can check it?

Press 👍  or mark my comment as solution if you find my sharing useful

🆒 Squarespace pinchzoom lightbox plugin (affiliate link)

👁‍🗨 360 degree photo viewer (affiliate link)

Link to comment
20 hours ago, quarterpastcait said:

Hello! I need to remove the white space under the video player. When I hover over the video that's where the UI controls are. See screenshots. I would like to remove this space for all native videos that I add to the site. The top "image" is the video in these screenshots.Screenshot2024-07-16at11_21_03PM.thumb.png.cf920cfe390412c37f4d05487b8643f1.pngScreenshot2024-07-17at12_53_56AM.png.71649ef54a7e8531451b66c4a9429f71.png

Try the following custom css

#block-yui_3_17_2_1_1721191854891_4875 .embed-block-wrapper,
#block-yui_3_17_2_1_1721233588957_4943 .embed-block-wrapper,
#block-yui_3_17_2_1_1721233588957_27811 .embed-block-wrapper, 
#block-yui_3_17_2_1_1721233588957_7595 .embed-block-wrapper{
  padding-bottom: 0 !important;
}
#block-yui_3_17_2_1_1721233588957_4943,
#block-yui_3_17_2_1_1721233588957_27811, 
#block-yui_3_17_2_1_1721233588957_7595{
  padding: 0;
}

I can see the gap on your first video. Please check its ratio to remove it

image.thumb.png.6451cdce8c6583c4197024e1dab44e23.png

Press 👍  or mark my comment as solution if you find my sharing useful

🆒 Squarespace pinchzoom lightbox plugin (affiliate link)

👁‍🗨 360 degree photo viewer (affiliate link)

Link to comment
Posted (edited)

Hi @HoaLTThank you for the response! I added the custom css, doesn't seem to be working on the top video but it fixed the bottom ones. Yay!!!

I see what you mean about the ratio and the UI of the video player overlaying the container but the video doesn't stretch down that far. Is there something else I should change on my end? 

Edited by quarterpastcait
Link to comment

This video seems to have the wrong aspect ratio (I check that it is 1.9666). Squarespace recommends uploading videos with 16:9 ratio. See here

You can use the following CSS to fix it:

#block-yui_3_17_2_1_1721191854891_4875 .video-player .plyr video {
  object-fit: cover;
}

 

Press 👍  or mark my comment as solution if you find my sharing useful

🆒 Squarespace pinchzoom lightbox plugin (affiliate link)

👁‍🗨 360 degree photo viewer (affiliate link)

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.