Jump to content

Video block rounded corners not working

Recommended Posts

I can get the video border with rounded corners via css but not the video itself. Screenshot attached. I'm using the following code. I'd like to apply this to all videos across my site. Can someone tell me what's wrong?

#block-yui_3_17_2_1_1668437815607_52957{
   outline: solid 5px #66095D;
  border-radius: 10px;
  background: #66095D
   }
.player {
  border-radius: 10px;
  overflow: hidden;
  z-index: 1;
  height: 320px;
  width: 480px;
}

Separately - does anyone have css code for background videos with rounded corners when inset?

https://hibiscus-dachshund-wk7b.squarespace.com/config/design

pw: forumhelp1

Thank you!

 

image.thumb.png.b3fcd89b4c91d9aaf737356e645f374f.png

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Hi! You'll need to use the clip-path property rather than border radius, try adding this to your Custom CSS, adjust the 10px to match your background border radius.

.video-player {
  -webkit-clip-path: inset(0px round 10px);
  clip-path: inset(0px round 10px);
}

Hope that helps!

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
🔌
 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 Did I help? Buy me a coffee?

Link to comment

Try this solution for inset background rounded corners:

https://www.sqsmods.com/round-corners-inset-background

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
🔌
 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 Did I help? Buy me a coffee?

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.