.iframe-container { position: relative; overflow: hidden; padding-top: 56.25%; /* 16:9 Aspect Ratio (9 / 16 = 0.5625 or 56.25%) */ } .iframe-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

4