I am facing an issue with scaling an iframe dynamically inside a <td>
element. My goal is to make the iframe occupy 33% of the screen width while automatically adjusting its height.
Here is what I have tried:
<iframe src="google drive presentation url" frameborder="0" width="33vw" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
However, the iframe only ends up taking 33% of the <td>
element's width, which contains text as well.
Even setting the width as "33%"
did not yield the desired result. How can I resolve this?