title: HTML Table positioned way lower than it should
body: <p>I have a pretty strange HTML problem I have never experienced before. I have been trying to solve it for way to long now, and the solution is probably jokinly simple!</p>
  
  <p>To see my problem, see the following image:
  <img src="https://i.stack.imgur.com/2wlZv.jpg" alt="Visual image of problem"></p>
  
  <p>As you can see, my table is positioned ~200-300 pixels below the user control with Navn and Besked, which it shouldn't! It should be right below.</p>
  
  <p>Now, let's look at the rendered HTML code:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;&lt;title&gt;
  
  &lt;/title&gt;
  &lt;link href="Stylesheet/Styles.css" rel="stylesheet" type="text/css" /&gt;&lt;/head&gt;
  &lt;body&gt;
      &lt;form name="aspnetForm" method="post" action="Forum.aspx" id="aspnetForm"&gt;
  &lt;div&gt;
  &lt;input type="hidden" name="ctl00_toolkitScriptMaster_HiddenField" id="ctl00_toolkitScriptMaster_HiddenField" value="" /&gt;
  &lt;input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" /&gt;
  &lt;input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" /&gt;
  &lt;input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNTIxNzE4MTg1D2QWAmYPZBYCAgMPZBYCAgEPZBYCAgEPZBYCZg9kFgICAw8WAh4LXyFJdGVtQ291bnQCDBYYZg9kFgJmDxUEAjEyMmRnZHNmZyBkZyBzZ2ZkIGdmcyBnZiBzZ2Ygc2RmZyBkZmcgc2ZnIHNmZyBzZGZnIHNkATATMjctMTAtMjAxMSAyMjo0MzowMGQCAg9kFgJmDxUEAjEzMmRnZHNmZyBkZyBzZ2ZkIGdmcyBnZiBzZ2Ygc2RmZyBkZmcgc2ZnIHNmZyBzZGZnIHNkATATMjctMTAtMjAxMSAyMjo0MzowMGQCBA9kFgJmDxUEAjExUEplZyBlciBoZWx0IHRvc3NldCBtZWQgc2lkZW4gLSBKZWcgZXIgaGVsdCB0b3NzZXQgbWVkIHNpZGVuIC0gSmVnIGVyIGhlbHQgdG9zc2V0ATATMjEtMTAtMjAxMSAxMjo1ODowMGQCBg9kFgJmDxUEAjEwFGdmZ2Znc2RmZ3NkZmcNCmZzZw0KATATMDctMTAtMjAxMSAxNDozNTowMGQCCA9kFgJmDxUEATkUSSBhbSB0ZXN0aW5nIGEgbG90IHIBMBMwNy0xMC0yMDExIDE0OjMyOjAwZAIKD2QWAmYPFQQBOApkZmZkc2ZzZGZkATETMDUtMTAtMjAxMSAxOToxMDowMGQCDA9kFgJmDxUEATcGa2tra2trATETMDUtMTAtMjAxMSAxOToxMjowMGQCDg9kFgJmDxUEATYGZ2dnZ3Z2ATETMDUtMTAtMjAxMSAxNjo1NTowMGQCEA9kFgJmDxUEATQUZ2FmZ2dmDQpnZGdzZA0KZ2RnZA0BMBMwNS0xMC0yMDExIDE1OjExOjAwZAISD2QWAmYPFQQBMxZmc2Fnc2ZnYWdzwqhmZ3NnZnPCqGdhATATMDUtMTAtMjAxMSAxNDo1ODowMGQCFA9kFgJmDxUEATIUZGduZGlndSBzZm5nc3VmZ2lkZg0BMBMwNS0xMC0yMDExIDE0OjM0OjAwZAIWD2QWAmYPFQQBMRRkZm1zaW4gZmdpdXNkIG5mZ2RzZwEwEzA1LTEwLTIwMTEgMTM6NTg6MDBkGAEFI2N0bDAwJENvbnRlbnRQbGFjZUhvbGRlcjEkTXVsdGlWaWV3Dw9kZmRxugsmEjuyu2Xbo8gslsOLZkR+JQ==" /&gt;
  &lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;
  //&lt;![CDATA[
  var theForm = document.forms['aspnetForm'];
  if (!theForm) {
      theForm = document.aspnetForm;
  }
  function __doPostBack(eventTarget, eventArgument) {
      if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
          theForm.__EVENTTARGET.value = eventTarget;
          theForm.__EVENTARGUMENT.value = eventArgument;
          theForm.submit();
      }
  }
  //]]&gt;
  &lt;/script&gt;
  
  
  &lt;script src="/SubsiteClient/WebResource.axd?d=sMtxLdPlL48Rto8ujGKTrPMt4xS4q9IIukS7rw_b1-tVz_fuTpjK6WMO1fThkB6olwlijb7FXVNdBmSCc-lK1Shl0hg1&amp;amp;t=634245478914809245" type="text/javascript"&gt;&lt;/script&gt;
  
  
  &lt;script src="/SubsiteClient/ScriptResource.axd?d=NZ4L6OCv5Z3x50AgcnftYK7fWT6BUu-Gq9jE_2WxJYOCk37z40cpv_qqqs_kmnhvn-xJhbaCokNDxVy2NVY_RnuDRh65lmml8WfdO8As5iyIlncIhzm2AuDVtr7gMxdVp6sjIQ2&amp;amp;t=3f0ccc7f" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  //&lt;![CDATA[
  if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
  //]]&gt;
  &lt;/script&gt;
  
  &lt;script src="/SubsiteClient/ScriptResource.axd?d=kpRlnyM1WRVy01WEn268dCfASwQAVa4jAV4Il9tdk3TTDVNPN4573gSvatDFGaS5ZYad71zPZWE4sKnE-uZR-VV1VI822qRI8oqDgu6i1yLz2_BW_AitLtFZycD6RCMLUEQCBA2&amp;amp;t=3f0ccc7f" type="text/javascript"&gt;&lt;/script&gt;
  &lt;div&gt;
  
      &lt;input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBAL339mjBQLWgqazCAKi/IGEDAL35sCPCXF2fOlt3NA/ZMTkI01Y4U+3xsAH" /&gt;
  &lt;/div&gt;
      &lt;div class="BodyStyle"&gt;
  
  
              &lt;a href="Default.aspx"&gt;Forsiden&lt;/a&gt; 
  
                          &lt;br /&gt;&lt;br /&gt;
                   &lt;hr /&gt;
    &lt;h1&gt;Hvad synes du om det nye&lt;/h1&gt;
  
  
  
  
  
  
  &lt;b&gt;Giv din mening om det nye&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;
  &lt;span id="ctl00_ContentPlaceHolder1_GiveFeedbackControl1_StatusLabel" style="color:Red;"&gt;&lt;/span&gt;
  
  &lt;p&gt;(Evt. navn)&lt;br /&gt;
      &lt;input name="ctl00$ContentPlaceHolder1$GiveFeedbackControl1$NameBox" type="text" id="ctl00_ContentPlaceHolder1_GiveFeedbackControl1_NameBox" style="width:340px;" /&gt;
  &lt;/p&gt;
  
  &lt;p&gt;Besked&lt;br /&gt;
  &lt;textarea name="ctl00$ContentPlaceHolder1$GiveFeedbackControl1$FeedbackBox" rows="2" cols="20" id="ctl00_ContentPlaceHolder1_GiveFeedbackControl1_FeedbackBox" style="height:80px;width:340px;"&gt;&lt;/textarea&gt;
  &lt;/p&gt;
  &lt;input type="submit" name="ctl00$ContentPlaceHolder1$GiveFeedbackControl1$GiveFeedbackBox" value="Giv feedback" id="ctl00_ContentPlaceHolder1_GiveFeedbackControl1_GiveFeedbackBox" /&gt;
  
  
  
  
  
  
               &lt;table style="width:900px;"&gt;
                  &lt;tr&gt; 
                      &lt;td style="width:550px;"&gt;&lt;b&gt;Kommentar&lt;/b&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;b style="font-size:small;"&gt;Svar&lt;/b&gt;&lt;/td&gt;&lt;td style="font-size:small; padding-left:7px;"&gt;&lt;b&gt;Sidste svar&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
  
                      &lt;tr&gt;&lt;td style="width:550px; border-right:1px dotted #000000;"&gt;
                      &lt;a href='ForumReader.aspx?entryid=12'&gt;
                          dgdsfg dg sgfd gfs gf sgf sdfg dfg sfg sfg sdfg sd...
                      &lt;/a&gt;&lt;/td&gt;
                      &lt;td style="font-size:small; border-right:1px dotted #000000; text-align:center;"&gt;0&lt;/td&gt;
                      &lt;td style="font-size:small; padding-left:7px;"&gt;27-10-2011 22:43:00
                      &lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;br /&gt;
  
                      &lt;tr&gt;&lt;td style="width:550px; border-right:1px dotted #000000;"&gt;
                      &lt;a href='ForumReader.aspx?entryid=13'&gt;
                          dgdsfg dg sgfd gfs gf sgf sdfg dfg sfg sfg sdfg sd...
                      &lt;/a&gt;&lt;/td&gt;
                      &lt;td style="font-size:small; border-right:1px dotted #000000; text-align:center;"&gt;0&lt;/td&gt;
                      &lt;td style="font-size:small; padding-left:7px;"&gt;27-10-2011 22:43:00
                      &lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;br /&gt;
  
                      &lt;tr&gt;&lt;td style="width:550px; border-right:1px dotted #000000;"&gt;
                      &lt;a href='ForumReader.aspx?entryid=11'&gt;
                          Jeg er helt tosset med siden - Jeg er helt tosset med siden - Jeg er helt tosset...
                      &lt;/a&gt;&lt;/td&gt;
                      &lt;td style="font-size:small; border-right:1px dotted #000000; text-align:center;"&gt;0&lt;/td&gt;
                      &lt;td style="font-size:small; padding-left:7px;"&gt;21-10-2011 12:58:00
                      &lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;br /&gt;
  
                      &lt;tr&gt;&lt;td style="width:550px; border-right:1px dotted #000000;"&gt;
                      &lt;a href='ForumReader.aspx?entryid=10'&gt;
                          gfgfgsdfgsdfg
  fsg
  ...
                      &lt;/a&gt;&lt;/td&gt;
                      &lt;td style="font-size:small; border-right:1px dotted #000000; text-align:center;"&gt;0&lt;/td&gt;
                      &lt;td style="font-size:small; padding-left:7px;"&gt;07-10-2011 14:35:00
                      &lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;br /&gt;
  
                      &lt;tr&gt;&lt;td style="width:550px; border-right:1px dotted #000000;"&gt;
                      &lt;a href='ForumReader.aspx?entryid=9'&gt;
                          I am testing a lot r...
                      &lt;/a&gt;&lt;/td&gt;
                      &lt;td style="font-size:small; border-right:1px dotted #000000; text-align:center;"&gt;0&lt;/td&gt;
                      &lt;td style="font-size:small; padding-left:7px;"&gt;07-10-2011 14:32:00
                      &lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;br /&gt;
  
                      &lt;tr&gt;&lt;td style="width:550px; border-right:1px dotted #000000;"&gt;
                      &lt;a href='ForumReader.aspx?entryid=8'&gt;
                          dffdsfsdfd...
                      &lt;/a&gt;&lt;/td&gt;
                      &lt;td style="font-size:small; border-right:1px dotted #000000; text-align:center;"&gt;1&lt;/td&gt;
                      &lt;td style="font-size:small; padding-left:7px;"&gt;05-10-2011 19:10:00
                      &lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;br /&gt;
  
                      &lt;tr&gt;&lt;td style="width:550px; border-right:1px dotted #000000;"&gt;
                      &lt;a href='ForumReader.aspx?entryid=7'&gt;
                          kkkkkk...
                      &lt;/a&gt;&lt;/td&gt;
                      &lt;td style="font-size:small; border-right:1px dotted #000000; text-align:center;"&gt;1&lt;/td&gt;
                      &lt;td style="font-size:small; padding-left:7px;"&gt;05-10-2011 19:12:00
                      &lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;br /&gt;
  
                      &lt;tr&gt;&lt;td style="width:550px; border-right:1px dotted #000000;"&gt;
                      &lt;a href='ForumReader.aspx?entryid=6'&gt;
                          ggggvv...
                      &lt;/a&gt;&lt;/td&gt;
                      &lt;td style="font-size:small; border-right:1px dotted #000000; text-align:center;"&gt;1&lt;/td&gt;
                      &lt;td style="font-size:small; padding-left:7px;"&gt;05-10-2011 16:55:00
                      &lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;br /&gt;
  
                      &lt;tr&gt;&lt;td style="width:550px; border-right:1px dotted #000000;"&gt;
                      &lt;a href='ForumReader.aspx?entryid=4'&gt;
                          gafggf
  gdgsd
  gdgd
  ...
                      &lt;/a&gt;&lt;/td&gt;
                      &lt;td style="font-size:small; border-right:1px dotted #000000; text-align:center;"&gt;0&lt;/td&gt;
                      &lt;td style="font-size:small; padding-left:7px;"&gt;05-10-2011 15:11:00
                      &lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;br /&gt;
  
                      &lt;tr&gt;&lt;td style="width:550px; border-right:1px dotted #000000;"&gt;
                      &lt;a href='ForumReader.aspx?entryid=3'&gt;
                          fsagsfgags¨fgsgfs¨ga...
                      &lt;/a&gt;&lt;/td&gt;
                      &lt;td style="font-size:small; border-right:1px dotted #000000; text-align:center;"&gt;0&lt;/td&gt;
                      &lt;td style="font-size:small; padding-left:7px;"&gt;05-10-2011 14:58:00
                      &lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;br /&gt;
  
                      &lt;tr&gt;&lt;td style="width:550px; border-right:1px dotted #000000;"&gt;
                      &lt;a href='ForumReader.aspx?entryid=2'&gt;
                          dgndigu sfngsufgidf
  ...
                      &lt;/a&gt;&lt;/td&gt;
                      &lt;td style="font-size:small; border-right:1px dotted #000000; text-align:center;"&gt;0&lt;/td&gt;
                      &lt;td style="font-size:small; padding-left:7px;"&gt;05-10-2011 14:34:00
                      &lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;br /&gt;
  
                      &lt;tr&gt;&lt;td style="width:550px; border-right:1px dotted #000000;"&gt;
                      &lt;a href='ForumReader.aspx?entryid=1'&gt;
                          dfmsin fgiusd nfgdsg...
                      &lt;/a&gt;&lt;/td&gt;
                      &lt;td style="font-size:small; border-right:1px dotted #000000; text-align:center;"&gt;0&lt;/td&gt;
                      &lt;td style="font-size:small; padding-left:7px;"&gt;05-10-2011 13:58:00
                      &lt;/td&gt;
                      &lt;/tr&gt;
  
  
              &lt;/table&gt;
  
  
  
      &lt;/div&gt;
      &lt;script type="text/javascript"&gt;
  //&lt;![CDATA[
  Sys.WebForms.PageRequestManager._initialize('ctl00$toolkitScriptMaster', document.getElementById('aspnetForm'));
  Sys.WebForms.PageRequestManager.getInstance()._updateControls([], [], [], 90);
  //]]&gt;
  &lt;/script&gt;
  
  
  
  &lt;script type="text/javascript"&gt;
  //&lt;![CDATA[
  (function() {var fn = function() {$get("ctl00_toolkitScriptMaster_HiddenField").value = '';Sys.Application.remove_init(fn);};Sys.Application.add_init(fn);})();Sys.Application.initialize();
  //]]&gt;
  &lt;/script&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Now, I don't see how this could ever give that span.. If we look at the markup: </p>
  
  <pre><code>&lt;h1&gt;Hvad synes du om det nye&lt;/h1&gt;
  
      &lt;asp:MultiView ID="MultiView" runat="server"&gt;
  
          &lt;asp:View ID="SubCategoryView" runat="server"&gt;
  
              &lt;uc1:GiveFeedbackControl ID="GiveFeedbackControl1" runat="server" /&gt;
  
  
               &lt;table style="width:900px;"&gt;
                  &lt;tr&gt; 
                      &lt;td style="width:550px;"&gt;&lt;b&gt;Kommentar&lt;/b&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;b style="font-size:small;"&gt;Svar&lt;/b&gt;&lt;/td&gt;&lt;td style="font-size:small; padding-left:7px;"&gt;&lt;b&gt;Sidste svar&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
              &lt;asp:Repeater ID="EntriesRepeater" runat="server"&gt;
                  &lt;ItemTemplate&gt;
                      &lt;tr&gt;&lt;td style="width:550px; border-right:1px dotted #000000;"&gt;
                      &lt;a href='ForumReader.aspx?entryid=&lt;%#DataBinder.Eval(Container.DataItem,"EntryId") %&gt;'&gt;
                          &lt;%#DataBinder.Eval(Container.DataItem, "Title")%&gt;...
                      &lt;/a&gt;&lt;/td&gt;
                      &lt;td style="font-size:small; border-right:1px dotted #000000; text-align:center;"&gt;&lt;%#DataBinder.Eval(Container.DataItem, "GetNumberofReplies")%&gt;&lt;/td&gt;
                      &lt;td style="font-size:small; padding-left:7px;"&gt;&lt;%#DataBinder.Eval(Container.DataItem, "GetEntryLastPost")%&gt;
                      &lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/ItemTemplate&gt;
  
                  &lt;SeparatorTemplate&gt;
                      &lt;br /&gt;
                  &lt;/SeparatorTemplate&gt;
              &lt;/asp:Repeater&gt;
  
              &lt;/table&gt;
          &lt;/asp:View&gt;
      &lt;/asp:MultiView&gt;
  </code></pre>
  
  <p>And for those who wonder, the user control doesn't have some magic lower padding.</p>
  
  <p>SO... What in the world am I not doing correct here? :-D</p>