title: Menu position in header section always leaves gap below buttons?
body: <p>I have tried manipulating position, padding, margin but nothing works to reduce the gap below the floated ul menu. I am following Matthew Jame's Taylors <a href="http://matthewjamestaylor.com/blog/perfect-3-column.htm" rel="nofollow">perfect 3 column</a> where he uses the following CSS for the menu </p>
  
  <pre><code>        #header ul
  {
          clear:left;
          float:left;
          width:100%;
          list-style:none;
          margin:10px 0 0 0;
          padding:0;
  
  }
      #header ul li 
  {
          display:inline;
          list-style:none;
          margin:0;
          padding:0;
  
  }
      #header ul li a 
  {
          display:block;
          float:left;
          margin:0 0 0 1px;
          padding:3px 10px;
          text-align:center;
          background:#eee;
          color:#000;
          text-decoration:none;
          position:relative;
          left:15px;
          line-height:1.3em;
  
  }
  </code></pre>
  
  <p>However, when I try the same code my ul menu ends up floating below into the paragraph instead of being above the upper border of the paragraph that it should be flush against. Hence I have to use positioning first to raise it to the border with values like bottom : 20.2px, then I have to try to use things like padding values on the bottom of the buttons to try and make it sit flush. Here is my code:</p>
  
  <pre><code>#header ul
  {
      margin : 0 ;
      padding : 0 ;
      float : left ; 
      clear : left ;
      list-style : none
  }
  
  #header ul li.headlist
  {
      padding : 0 ;
      display : inline ;
      margin : 0 ;
      list-style : none
  }
  
  #header ul li.headlist 
  {
      list-style-type : none ;
      margin : 0 
  }
  
  ul li.headlist a 
  {
      text-decoration : none ;
      float : left ;
      display : block ;
      text-align : center ;
      font : 14px Arial "sans-serif" ;
      font-color : black ;
      background-color : #E9E9E9 ;
      padding : 6px 15px 0.5px ;
      border-radius : 4px 4px 0px 0px ;
      line-height : 1.0em ;
      position : relative ;
      left : 18px ;
      bottom : 20.2px ;
      margin : 0px 0px 0px 1px
  }
  
  ul li.headlist a span.headspan
  {
      vertical-align : top ;
      margin : 0 
  }
  
  ul li.headlist a:hover
  {
      background : #369 ;
      color : fff
  }
  </code></pre>
  
  <p>I have been trying to figure this out for some time without posting a question, but nothing in the code explains why my menu floats down to the paragrapph and needs bottom : 20.2 while Matthew Taylor's doesn't seem to need any such positioning. Also, even if the padding and positioning make the buttons look flush in IE or Chrome, they are positioned differently in Firefox.</p>
  
  <p>Here is my <a href="https://jsfiddle.net/9k2hcqn8/" rel="nofollow">JS Fiddle</a>  </p>