inbetweendays
12-23-2007, 09:52 PM
I am setting up a menu navigation for a website I am working on... However I am running into a pesky CSS issue. The menu looks fine/great on PC versions of IE and Firefox, however on Linux or Mac it appears slightly different and funky. The problem is that if I tweak the CSS to make the menu look good on the Mac, it then looks funky on in IE6, IE7, and Firefox on the PC.
Has anyone run into this issue before or recommend an appropriate solution? Thanks in advance!
Below are screenshots and the CSS code.
Screenshot on Windows IE6:
http://www.grafiks.org/bugs/Screenshot-PC.jpg
Screenshot on Mac Firefox:
http://www.grafiks.org/bugs/Screenshot-Mac.jpg
(Note the extra space below the Inbox button)
CSS Snippet:
#mainnavin {
height:30px; width:673px;
background-color:#687A9C;
color:#fff;
background: url(../images/mainnavbg.gif) center center repeat-x;
overflow:auto;
}
#mainnavin ul{
height:30px;
font-size:12pt;
margin: 0;
padding: 0;
float: left;
background: url(../images/mainnavbg.gif) center center repeat-x;
}
#mainnavin ul li{
display: inline;
}
#mainnavin ul li a{
padding:4px 20px;
float: left;
color: #fff;
text-decoration: none;
border-right: 1px solid #283B76;
}
#mainnavin ul li a:visited{
color: #fff;
}
#mainnavin ul li a:hover, #mainnavin ul li .current{
color: #fff;
background: url(../images/mainnavbg2.gif) center center repeat-x;
}
HTML Snippet:
<div id="mainnavin">
<ul>
<li><a href="index.html">Welcome</a></li>
<li><a href="inbox.html" class="current">Inbox</a></li>
<li><a href="#">Features</a></li>
</ul>
</div>
Has anyone run into this issue before or recommend an appropriate solution? Thanks in advance!
Below are screenshots and the CSS code.
Screenshot on Windows IE6:
http://www.grafiks.org/bugs/Screenshot-PC.jpg
Screenshot on Mac Firefox:
http://www.grafiks.org/bugs/Screenshot-Mac.jpg
(Note the extra space below the Inbox button)
CSS Snippet:
#mainnavin {
height:30px; width:673px;
background-color:#687A9C;
color:#fff;
background: url(../images/mainnavbg.gif) center center repeat-x;
overflow:auto;
}
#mainnavin ul{
height:30px;
font-size:12pt;
margin: 0;
padding: 0;
float: left;
background: url(../images/mainnavbg.gif) center center repeat-x;
}
#mainnavin ul li{
display: inline;
}
#mainnavin ul li a{
padding:4px 20px;
float: left;
color: #fff;
text-decoration: none;
border-right: 1px solid #283B76;
}
#mainnavin ul li a:visited{
color: #fff;
}
#mainnavin ul li a:hover, #mainnavin ul li .current{
color: #fff;
background: url(../images/mainnavbg2.gif) center center repeat-x;
}
HTML Snippet:
<div id="mainnavin">
<ul>
<li><a href="index.html">Welcome</a></li>
<li><a href="inbox.html" class="current">Inbox</a></li>
<li><a href="#">Features</a></li>
</ul>
</div>