I have a CSS delima that I hope someone can help me with.
First, let me give you the CSS code I’m working with for my main navigation menu at http://www.filipinaeyes.com
div#headernav_wrap {
margin: 0px auto;
width: 920px;
height: 38px;
background: #dd0040 url(images/navbar_bg.png);
background-repeat: repeat-x; }
div#headernav { }
div#headernav ul {
padding-left: 5px;
height: 30px;
list-style-type: none; }
div#headernav ul li {
float: left; }
div#headernav ul li a {
padding: 0px 10px;
height: 36px;
display: block;
float: left;
font: bold 12px/36px arial, verdana, sans-serif;
color: #ffffff;
text-decoration: none; }
div#headernav ul li a:hover {
text-decoration: underline; }
Now let me show you the html code that uses the above css coding:
<div id="headernav_wrap">
<div id="headernav">
<ul>
<li style="margin-left:-50px;"><a href="http://www.filipinaeyes.com/online-dating-gallery/">Main Asian Dating Gallery</a></li>
<li><a href="http://www.filipinaeyes.com/online-dating-gallery/blogs/">Blog Gallery</a></li>
<li><a href="http://www.filipinaeyes.com/online-dating-gallery/videos/">Video Gallery</a></li>
<li><a href="http://www.filipinaeyes.com/online-dating-gallery/hotornot/">Hot or Not</a></li>
<li><a href="http://www.filipinaeyes.com/online-dating-gallery/account/register/"><font color="#FFFF00">Sign Up for Free Membership</font></a></li>
</ul>
</div>
</div>
You can see in the above html coding I used inline style to give the first menu item a negative margin left.
NOW FOR THE PROBLEM
Firefox displays the negative margin correctly as the image below shows:
IE seems to ignore the negative margin as the image below shows:
In Fire Fox the menu item displays correctly. But in IE8 the negative margin seems to have no effect. Am I dong something wrong or is this a bug in IE? Any suggestions would be appreciated.
Thanks