I have two divs with a 50% width each. One contains a simple image and the other includes a YouTube video embed.
My goal is to ensure that both elements (image and video) have the same height, while maintaining responsiveness.
I attempted to use the css from for the video embed, but I am struggling to make it work correctly.
Here is what I aim to achieve:
https://i.sstatic.net/upKoJ.png
This is my jsfiddle:
<div class="content">
<div class="left">
<img src="http://placehold.it/756x560/2cb7c0/ffffff">
</div>
<div class="right">
<div class='embed-container'><iframe src='https://www.youtube.com/embed/C7dPqrmDWxs' frameborder='0' allowfullscreen></iframe></div>
</div>
</div>