I have this iframe, which depending on the situation can contain a video, and if unavailable an image - the problem I seem to be having is that the image is not being responsive enough to scale itself based on the screen size - it just cuts off the part that is outside the container.
This is what I currently have.
.parent {
position: relative;
padding-bottom: 56.25%;
height: 0;
}
.parent__wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
<div class="parent">
<iframe class="parent__wrapper" src="https://placekitten.com/566/313" frameborder="0" scrolling="no"></iframe>
</div>
https://jsfiddle.net/onze9y0a/3/
How do I make it avoid cutting the sides or buttons as the screen size changes?