RDIGITAL Posted December 8, 2022 Share Posted December 8, 2022 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! Link to comment
Ziggy Posted December 9, 2022 Share Posted December 9, 2022 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
Ziggy Posted December 9, 2022 Share Posted December 9, 2022 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment