The problem is the width you've set on the ul and #menu of 100px, this is too narrow for the list items to sit next to each other. By changing the width to auto on ul removing it from #menu and giving the li a width in ems (so they resize with text size) it works. Also better to use float:left rather than display:inline on the li.
#menu ul {
list-style: none;
white-space: nowrap;
width: auto
margin: 0 0 20px 0;
padding: 0;
font-size: 1.1em;
}
#menu li {
margin-bottom: 4px;
float:left;
width:8em;
margin-right:6px;
}
To make this behave in IE6 we'd also need a conditional comment -
Cheers,Code:<!--[if lte IE 6]> <style> #menu a {height:1%;} #menu li{height:1%;} </style> <![endif]-->
Jon
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks