title: Why is a table not using the body font size even though I haven't set the table font size explicitly?
body: <p>I have a problem whereby I have set the body font-size to 11px, but tables display font at 16px. I have no idea whats causing this - I have been over the CSS and the output (source when browsing to the page) time and time again. Setting table font-size to 11px explicitly has the desired effect, but I shouldn't need to set it anywhere apart from the body style.</p>
  
  <p>I have the following CSS:</p>
  
  <pre><code>body {
      font-family:Verdana, Arial, Helvetica, sans-serif;
      font-size: 11px;
      margin: 0px;
      background-color: #E7D2B8;
      color: #863F2B;
  }
  img.headerImg {
      width: 100%;
  }
  .menu-strip {
      float: left;
      width: 20%;
  }
  .main-content {
      float: left;
      width: 80%;
  }
  .clear {
      clear: both;
  }
  ul.menu {
      margin: 0px;
      margin-left: 10px;
      padding: 0px;
      list-style: none;
  }
  ul.menu li {
      margin: 0px;
      padding: 0px;
      padding-top: 10px;
      padding-bottom: 10px;
  }
  div.footer {
      width: 60%;
      margin-left: 20%;
  }
  ul.footer-links {
      list-style: none;
  }
  ul.footer-links li {
      float: left;
      padding: 20px;
  }
  ul.footer-links li:last {
      clear: right;
  }
  table {
      width: 100%;
      border-collapse: collapse;
  }
  td {
      vertical-align: top;
  }
  </code></pre>
  
  <p>...and the output is as follows:</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
          &lt;title&gt;&lt;/title&gt;
          &lt;link rel="stylesheet" type="text/css" href="/CustomerApp_v2/CSS/main.css" /&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="header"&gt;
              &lt;img class="headerImg" alt="Header image" src="/CustomerApp_v2/Images/header.png" /&gt;
          &lt;/div&gt;
          &lt;div class="menu-strip"&gt;
              &lt;ul class="menu"&gt;
                  &lt;li&gt;Home&lt;/li&gt;
                  &lt;li&gt;Contacts
                      &lt;ul class="menu"&gt;
                          &lt;li&gt;Customers&lt;/li&gt;
                          &lt;li&gt;&lt;a href="/CustomerApp_v2/Agents/Agents.php"&gt;Agents&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;Artists&lt;/li&gt;
                          &lt;li&gt;Suppliers&lt;/li&gt;
                          &lt;li&gt;Other&lt;/li&gt;
                      &lt;/ul&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
          &lt;div class="main-content"&gt;
              &lt;table&gt;
                  &lt;thead&gt;
                      &lt;tr&gt;
                          &lt;td&gt;Code&lt;/td&gt;
                          &lt;td&gt;Forename&lt;/td&gt;
                          &lt;td&gt;Surname&lt;/td&gt;
                          &lt;td&gt;Address&lt;/td&gt;
                          &lt;td&gt;Postcode&lt;/td&gt;
                          &lt;td&gt;Telephone&lt;/td&gt;
                          &lt;td&gt;Fax&lt;/td&gt;
                          &lt;td&gt;Edit&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/thead&gt;
                  &lt;tfoot&gt;
                      &lt;tr&gt;
                          &lt;td colspan='7'&gt;&lt;/td&gt;
                          &lt;td&gt;&lt;a href='/CustomerApp_v2/Agents/Edit.php'&gt;Create&lt;/a&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/tfoot&gt;
                  &lt;tbody&gt;
                      &lt;tr&gt;
                          &lt;td&gt;code4&lt;/td&gt;
                          &lt;td&gt;James&lt;/td&gt;
                          &lt;td&gt;Blue&lt;/td&gt;
                          &lt;td&gt;address11&lt;br /&gt;address24&lt;br /&gt;address32&lt;br /&gt;town5&lt;br /&gt;&lt;/td&gt;
                          &lt;td&gt;postcode4&lt;/td&gt;
                          &lt;td&gt;fone4&lt;/td&gt;
                          &lt;td&gt;fone2&lt;/td&gt;
                          &lt;td&gt;&lt;a href='/CustomerApp_v2/Agents/Edit.php?ID=2'&gt;Edit&lt;/a&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;code5&lt;/td&gt;
                          &lt;td&gt;Fred&lt;/td&gt;
                          &lt;td&gt;White&lt;/td&gt;
                          &lt;td&gt;address13&lt;br /&gt;address24&lt;br /&gt;address31&lt;br /&gt;town1&lt;br /&gt;&lt;/td&gt;
                          &lt;td&gt;postcode2&lt;/td&gt;
                          &lt;td&gt;fone5&lt;/td&gt;
                          &lt;td&gt;fone3&lt;/td&gt;
                          &lt;td&gt;&lt;a href='/CustomerApp_v2/Agents/Edit.php?ID=1'&gt;Edit&lt;/a&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/tbody&gt;
              &lt;/table&gt;
          &lt;/div&gt;&lt;div class="clear"&gt;&lt;/div&gt;
          &lt;div class="footer"&gt;
              &lt;ul class="footer-links"&gt;
                  &lt;li&gt;Link 1&lt;/li&gt;
                  &lt;li&gt;Link 2&lt;/li&gt;
                  &lt;li&gt;Link 3&lt;/li&gt;
                  &lt;li&gt;Link 4&lt;/li&gt;
                  &lt;li&gt;Link 5&lt;/li&gt;
                  &lt;li&gt;Link 6&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I seriously cant see anything which could set the font-size to 16px in the table. This happens for all 3 sections (thead, tfoot, tbody). It also seems that Netbeans 6.9 will not format the table properly, but it does the rest of the document (before and after). Its almost as if there is something wrong with the table, but I can't see what. This happens in Firefox and Opera (most recent versions of both). I haven't tested it in IE because it will never be used in IE.</p>