in which the iframe is located also has a height: 100%, thanks, your solution worked! Default is 300. Two common video aspect ratios are 4:3 Create an iframe that will keep the aspect ratio (4:3, 16:9, etc.) Find centralized, trusted content and collaborate around the technologies you use most. describes the proportional relationship between its width and its height. i was looking at this link: I've tried a couple of variation but cant get it to work. Another solution which works is set height in style of iframe to 100vh. Is it safe to publish research papers in cooperation with Russian academics? Looking for job perks? What were the most popular text editors for MS-DOS in the 1980s? When the embedded document has the same origin as the embedding page, it is, Sandboxing is useless if the attacker can display content outside a sandboxed. How about saving the world? Why are players required to record the moves in World Championship Classical games? Embedded hyperlinks in a thesis or research paper. What is the difference between "let" and "var"? Enjoy. How a top-ranked engineering school reimagined CS curriculum (Ep. How to get the height and width of an iframe, executing a script from outside the iframe? What are the limits of mathematics? now what's the problem? So their use in specifying the size of an