Hey, I've got this code snippet: So there are two iframes positioned side by side with a specific ratio as indicated in the link provided. My aim is to maintain that ratio regardless of the screen size where it's viewed. The first iframe is named iframe2 and the other one is named iframe1.
<div class="box">
<iframe allow="camera; microphone; fullscreen; display-capture; autoplay" src="source 1"
style="border:0px #ffffff none;" name="myiFrame" scrolling="no" frameborder="1"
marginheight="0px" marginwidth="0px" height="600px" width="300px" align="right"
allowfullscreen> </iframe>
</div>
<div class="box">
<iframe src="source 2" style="border:0px #ffffff none;" name="myiFrame" scrolling="no"
frameborder="1" marginheight="0px" marginwidth="350px" height="600px" width="1033px"
allowfullscreen></iframe>
</div>
[Here's how the desired ratio looks like, irrespective of screen size][1]
[1]: https://i.stack.imgur.com/H7D81.png
I'm figuring out how to automatically resize both iframes while maintaining this specific ratio. I dabbled a bit with CSS but couldn't get the resizing right—it kept turning into a small square whenever I applied methods suggested in other queries. Would appreciate any help or insights on how to tackle this challenge!