title: Safari 5.1 breaks CSS table cell spacing
body: <p>My site was working fine across all major browsers right up until the update to Safari 5.1.  Now, the primary navigation is busted up.  I was using <code>display:table-cell</code> on the anchor element within the list element and was also using the <code>font-size:0</code> hack to remove the spacing in between menu elements.  Has anyone else encountered this issue and have a solution they could offer up?</p>
  
  <p>Before:
  <a href="https://i.imgur.com/uJFOK.png" rel="nofollow noreferrer"><img src="https://i.imgur.com/uJFOK.png" alt="Before Image"></a></p>
  
  <p>After:
  <a href="https://i.imgur.com/KbvxL.png" rel="nofollow noreferrer"><img src="https://i.imgur.com/KbvxL.png" alt="After Image"></a></p>
  
  <p><strong>CSS:</strong></p>
  
  <pre><code>#navigation {
    padding-top: 7px;
  }
  
  #navigation ul.links, /* Main menu and secondary menu links */
  #navigation .content ul /* Menu block links */ {
    margin: 0;
    padding: 0;
    display: block;
    font-size: 0; /* this is a hack so that the spacing between the menu buttons disappear
                     since they are inline-block elements, this should be unneccessary when
                     CSS3 is approved */
  }
  
  #navigation ul.links li, /* A simple method to get navigation links to appear in one line. */
  #navigation .content li {
    display: inline-block;
    padding-right: 0;
    padding-left: 0;
    margin: 0;
  
    /* below is a fix for IE7 to get the main navigation items lined up correctly
     * in one row
     */
    zoom: 1;
    *display: inline;
  }
  #main-menu ul {
    width: 100%;
  }
  #main-menu li {
    width: 108px;
    text-align: center;
    padding-bottom: 7px;
    font-size: 11pt;
  }
  #main-menu a {
    display: table-cell;
    width: inherit;
    text-decoration: none;
    font-size: 0.9em;
    color: #035B9A;
    background-color: white;
    height: 30px;
    vertical-align: middle;
  }
  </code></pre>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;div id="navigation"&gt;
      &lt;div class="section"&gt;
          &lt;h2 class="element-invisible"&gt;Main menu&lt;/h2&gt;
          &lt;ul id="main-menu" class="links inline clearfix"&gt;
              &lt;li class="menu-379 first"&gt;&lt;a href="/about-scrubbed"&gt;About Us&lt;/a&gt;&lt;/li&gt;
              &lt;li class="menu-401"&gt;&lt;a href="/" title=""&gt;Research&lt;/a&gt;&lt;/li&gt;
              &lt;li class="menu-385"&gt;&lt;a href="/education"&gt;Education&lt;/a&gt;&lt;/li&gt;
              &lt;li class="menu-402"&gt;&lt;a href="/" title=""&gt;Outreach&lt;/a&gt;&lt;/li&gt;
              &lt;li class="menu-403 active-trail active"&gt;&lt;a href="/news" title="" class="active-trail active"&gt;News &amp;amp; Events&lt;/a&gt;&lt;/li&gt;
              &lt;li class="menu-439"&gt;&lt;a href="/people"&gt;People&lt;/a&gt;&lt;/li&gt;
              &lt;li class="menu-405"&gt;&lt;a href="/" title=""&gt;Resources&lt;/a&gt;&lt;/li&gt;
              &lt;li class="menu-406"&gt;&lt;a href="/" title=""&gt;Publications&lt;/a&gt;&lt;/li&gt;
              &lt;li class="menu-415 last"&gt;&lt;a href="/partners"&gt;Partners&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Thanks.</p>
  
  <p>Just a note, this is a Drupal 7 site.</p>
  
  <p>Also I freely and humbly admit I am not the very best at CSS markup.  I'm learning a lot right now and am just trying to scrape through.</p>