meliss808 Posted November 12 Share Posted November 12 (edited) Hi there, I'm trying to find a solution to add rounded corners to embedded videos on blog posts. I've tried this code from another post but it doesn't do anything. .video-player .plyr video { object-fit: cover !important; border-radius: 10px !important; } The only other current custom CSS I have is for rounded corners on images // This adds a radius to most of the images .products .grid-image-wrapper, .image-block-wrapper, .ProductItem-gallery-slides-item.selected, .sqs-gallery-design-grid-slide .image-slide-anchor .image-overlay { border-radius: 12px; } // This adds a radius to the images when under a colored field img { border-radius: 12px; } // This adds a radius to the BLOB/article images a { border-radius: 12px } #block-f78dddc9ce7dffab4822 iframe { border-radius: 15px; } Any help would be much appreciated! URL: https://bulldog-grapefruit-sym2.squarespace.com/archive/blog-post-title-one-snnxx-nadmb-sk4z2-kbsy9-6exdp Pass: bfJVV%%sB5 Edited November 12 by meliss808 Link to comment
Solution SaranyaDesigns Posted November 13 Solution Share Posted November 13 @meliss808 try this in your custom CSS. NOTE: This looks like it will only work for youtube embeds, if you have other types of videos like vimeo etc you may need to adjust or add selectors: .embed-block-wrapper.embed-block-provider-YouTube { border-radius: 15px; overflow: hidden; } Link to comment
meliss808 Posted November 14 Author Share Posted November 14 (edited) that worked, thank you so much @SaranyaDesigns! Edited November 14 by meliss808 SaranyaDesigns 1 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