My site worked perfectly in all major browsers until the Safari 5.1 update. Now the primary navigation is exposed. I used display:table-cellfor the anchor item in the list item and also used hack for font-size:0to remove the spacing between menu items. Has anyone else encountered this problem and got a solution that they could offer?
Before:

After:

CSS
#navigation {
padding-top: 7px;
}
#navigation ul.links,
#navigation .content ul {
margin: 0;
padding: 0;
display: block;
font-size: 0;
}
#navigation ul.links li,
#navigation .content li {
display: inline-block;
padding-right: 0;
padding-left: 0;
margin: 0;
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;
}
HTML:
<div id="navigation">
<div class="section">
<h2 class="element-invisible">Main menu</h2>
<ul id="main-menu" class="links inline clearfix">
<li class="menu-379 first"><a href="/about-scrubbed">About Us</a></li>
<li class="menu-401"><a href="/" title="">Research</a></li>
<li class="menu-385"><a href="/education">Education</a></li>
<li class="menu-402"><a href="/" title="">Outreach</a></li>
<li class="menu-403 active-trail active"><a href="/news" title="" class="active-trail active">News & Events</a></li>
<li class="menu-439"><a href="/people">People</a></li>
<li class="menu-405"><a href="/" title="">Resources</a></li>
<li class="menu-406"><a href="/" title="">Publications</a></li>
<li class="menu-415 last"><a href="/partners">Partners</a></li>
</ul>
</div>
</div>
Thank.
Just notice, this is the Drupal 7 site.
I also freely and humbly admit that I'm not the best at CSS markup. Now I am learning a lot and just trying to slip.
source
share