Is there a way to automate the resizing of content within an iframe based on its dimensions?
For example, in this code snippet, a box of 300px by 200px is randomly generated.
However, the actual content is equivalent to about 10 pages or 8.5 inches by (11*10) inches. Each page is 8.5 by 11 inches. While CSS can be used to set fixed dimensions, I want the iframe to adjust dynamically based on the content it holds.
Code Sample:
<div id="community">
<div id = "community_outer"></div>
<div id = "community_cover"></div>
<iframe scrolling="no" id="community_frame" src="https://docs.google.com/document/d/1n9bsHIBk1KxGQTKgUF-NG6FRhb4LP0OHfmd4I50CFCU/pub" ></iframe>
</div>