title: Resizing an iframe to fit content on multiple pages
body: <p>Could somebody please show me how to fit an iframe to the content within? I have this because I am using one iframe on my website that when a link is clicked displays different pages and I would love for the iframe to fit to the content within as at the moment the iframe is too long for some page's content but too short for other page's content and it cuts the page off.</p>
  
  <p>I do not really have much code to show which is relevant or that will be any help, however in line with the rules on Stack below is the code that I have so far.</p>
  
  <p>I have seen some questions on here regarding the same thing but none that I really understand.</p>
  
  <pre><code>&lt;iframe id="preview-frame" src="http://airforceadvice.com/PCS" name="preview-frame" frameborder="0" scrolling="no"&gt;
        &lt;/iframe&gt;
  </code></pre>