Building a CMS for a music podcast. Each episode page has a different youtube video embedded. The first 2 are fine:
But for some reason the YouTube video is coming in at a bigger height in the 3rd one?
Any idea what might be causing this?
Building a CMS for a music podcast. Each episode page has a different youtube video embedded. The first 2 are fine:
But for some reason the YouTube video is coming in at a bigger height in the 3rd one?
Any idea what might be causing this?
The video element has a set padding-top: auto. Which by default will adjust the aspect of the video based on the origin.
You should be able to override this with the code below and set Video 2 to 100% width and height to fill the div parent.
<style> .video-2 { padding-top: 0px !important; } </style>
Just add a HTML embed on the page or you can also just add it into the section of the page.
Thanks so much for this @dennyhartanto. Just so I’m clear, should I be putting this in the body or the head of the page?
Have also tried styling the “video” class (in addition to “video-2”) but it doesn’t seem to be working. You can see from the link below I’ve done the html embed and custom code in the page but no luck