title: Prevent iframe from resizing when content changes
body: <p>I have an iframe inside of a table cell, roughly:</p>
  
  <pre><code>&lt;table&gt;
    &lt;tr&gt;
      &lt;td&gt;
         &lt;iframe style=height:100%; width:100% src="content.aspx" /&gt;
      &lt;/td&gt;
    &lt;tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>When the page initially loads everything sizes correctly, the iframe expands to the full area of the cell. If you reload the content of the cell of perform a submit, the iframe collapses, presumably because it thinks there is no content, but then does not re-expand once the content does load.</p>
  
  <p>Can this be prevented? iframe height = 100% always...</p>
  
  <p>**Update: This is my actual iframe:</p>
  
  <pre><code>&lt;iframe id="frmContent" runat="server" frameborder="0" src="Home.aspx" style="height:100%; width:100%; margin:0; padding:0; display:block" &gt;
  </code></pre>
  
  <p>I discovered the problem is the display: block, but if I don't use that the iframe renders extra space underneath it that ruins my layout causing an extra scroll bar.</p>