Proportional scaling of a *container* is fairly easy
.parent {
height: 0;
padding-bottom: 56.25%; /* 16:9 */
position: relative;
}
.child {
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
}
css
https://css-tricks.com/scaled-proportional-blocks-with-css-and-javascript/
<iframe width="100%" height="434" src="http://snipet.teknotit.com/index.php?embed=5a9ee13914442" type="text/html"></iframe>
Texte seul - Permalink - Snippet public posté le 06/03/2018