Joder,
Thanks for the input.
While testing the behavior of this code the only thing I could surmise was that the divider marks (|) were somehow causing the link margins to collapse when clicking the link.
What I did was separate the | marks into their own <li>|<li> line items, and modify the CSS by setting the padding for the line items ( #nav ul li ) instead of the links ( #nav ul li a):
#nav ul li{
padding: 0px 15px;
margin: 0px;
display: inline;
}
#nav ul li a{
text-decoration: none;
font-weight: bold;
color: #FFFFFF;
}
#nav ul li a:hover, #nav ul li a:focus{
color: #3366FF;
}
Now it seems to work in both IE6 and Firefox. Even though it was working in IE6 before, perhaps it was a fluke rather than a bug in Firefox? If anyone has a better method of putting divider lines between links in the navbar I would love to learn how. The problem with using right and left border declarations is that the borders would show on each end of the navbar and I want to avoid that.
Thanks,
Wilbury
http://www.diamondpackaging.com/green/
http://www.diamondpackaging.com/green/diamond8e.css
Last edited by wilbury : 09-05-2007 at 04:04 PM.
|