Thanks
Yes I know if I define the height of the iframe in pixels or percent the container will use the defined height, but I was asking if there was a way to have the containing element expand or contract to suit the iframe variable size?
I know its possible using css in a normal webpage for example
HTML
<div class="container">
<iframe class="responsive-iframe" src="https://www.youtube.com/embed/tgbNymZ7vqY"></iframe>
</div>
CSS
.container {
position: relative;
overflow: hidden;
width: 100%;
padding-top: 100%; /* 1:1 Aspect Ratio */
}
/* Then style the iframe to fit in the container div with full height and width */
.responsive-iframe {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
}
Is there a way of doing something like this through the plugin?
-
This reply was modified 4 years, 3 months ago by zukenstein.