tracey Posted August 17 Share Posted August 17 Hi guys, I'd like to display a video inside of a blog post between images but having difficulty removing left & right padding on the video so that its the same width as the images. Any idea what code I could use? https://www.traceyjohnson.work/graphic-design-portfolio/daria-davydova Link to comment
tuanphan Posted August 18 Share Posted August 18 Try this to Website Tools > Custom CSS h1.BlogItem-title+div .video-block video { object-fit: cover !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
tracey Posted August 19 Author Share Posted August 19 (edited) On 8/17/2024 at 11:34 PM, tuanphan said: h1.BlogItem-title+div .video-block video { object-fit: cover !important; } Thanks Tuanphan, it kinda worked but the top & bottom of the video have been cropped out. I altered the code to say fill instead of cover & although it looks a little squashed, might just do the job, thanks for your help! Edited August 19 by tracey 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