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?

   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?


pw: forumhelp1

Thank you!



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 useful to you. Thanks!

Zygmunt Spray
Squarespace Website Designer
Contact me: https://squarefortytwo.com/ 
🔌Ghost Squarespace Plugins (Referral link)
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.