title: the size of an iframe don't fit the real content
body: <p>Good afternoon </p>
  
  <p>Is simple, i need the white box height and width fit with the iframe text, how i can do it?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function resizeIframe (iframeContentWidth, iframeContentHeight) {
      var container = window.frameElement.parentElement;
      if (container != parent.document.body) {
          container.style.width = iframeContentWidth + 'px';
          container.style.height = iframeContentHeight + 'px';
      }
      window.frameElement.style.width = iframeContentWidth + 'px';
      window.frameElement.style.height = iframeContentHeight + 'px';
      return;
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>html {
    background-color: #fff
  }
  div {
    background-color: #000;
  display: inline-block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
    &lt;iframe src="http://190.216.202.35/rxp/mobilpxr.php?stopid=502102" height="85px"  width="250px" scrolling="no" frameborder="0"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>