title: Why does my iframe content have an empty area around it?
body: <p>I have created an iframe code that I want people to use as a widget on their website. This iframe will load a webpage which has a button and a counter. In the accessed page I've got a graphic.</p>
  
  <p>But the iframe is rendered in the browser with a white empty area around it. Why is this happening? Here's my code: -</p>
  
  <p>At the client side:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      window.onload = function() {
          document.all.myframe.src = "blogup.aspx?url=" + window.location.href;
      }
  &lt;/script&gt;
  
  &lt;iframe id="myframe" height="75" width="235" scrolling="no" frameborder="0"&gt;
  &lt;/iframe&gt;
  </code></pre>
  
  <p>The page that should be displayed</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="blogup.aspx.cs" Inherits="blogup" %&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
          &lt;img style="float: left" src="images/blogup1.jpg" alt="Blogvani.com - Indian blogs aggregator" /&gt;
          &lt;div style="font-family: Verdana; font-size: 16px; margin:0;padding:0;font-weight: bold; background: url('images/blogup2.jpg') no-repeat;
              height: 50; width: 44; padding: 22px 5px 5px 5px; text-align: center"&gt;
              &lt;a href="javascript:voteup('&lt;%= PostURL %&gt;')" id="votecount" style="text-decoration: none;
                  color: #026A88"&gt;115&lt;/a&gt;&lt;/div&gt;
      &lt;asp:Label ID="Label1" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;
      &lt;asp:ScriptManager ID="ScriptManager1" EnablePageMethods="true" runat="server"&gt;
          &lt;Services&gt;
              &lt;asp:ServiceReference Path="~/Services.asmx"             
          &lt;/Services&gt;
      &lt;/asp:ScriptManager&gt;
  
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Note: I am using inline css. Margin and padding are set to 0, yet the images are being displayed a little offset from top and left.</p>
  
  <p>Any ideas?</p>