I’m working with the Suckerfish dropdown menu and I’m having trouble getting the text on the nav bar to appear all on one line - If there’s two words in the nav phrase then the words get stacked. Can anyone figure this one out?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Suckerfish Dropdowns - Perciformes!</title>
<style type="text/css">
body {
font-family: arial, helvetica, verdana, sans-serif;
font-size: 11px;
background: white;
text-align: center;
padding: 0;
margin: 2em;
}
#container {
width: 488px;
background: #F4ECD9;
text-align: left;
border: 1px solid #eda;
margin: 0 auto;
}
p {
background: url(remorabg.gif) center no-repeat;
margin: 1em 2em;
}
p#smurf {
background: transparent;
font-style: italic;
text-align: center;
font-weight: bold;
color: #7C6240;
}
#smurf strong {
font-size: 1.2em;
color: black;
}
h1 {
height: 108px;
background: url(perciformes3.gif) bottom center no-repeat;
text-indent: -999em;
margin: 1em 0 0 0;
}
#nav, #nav ul {
float: left;
width: 488px;
list-style: none;
line-height: 1;
background: white;
font-weight: bold;
padding: 0;
/* border: solid #eda; */
/* border-width: 1px 0; */
margin: 0 0 1em 0;
}
#nav a {
display: block;
width: 152px;
w\idth: 6em;
color: #7C6240;
text-decoration: none;
padding: 0.25em 2em;
/* height: 15px; */
}
#nav a.daddy {
background: url(rightarrow2.gif) center right no-repeat;
}
#nav li {
float: left;
padding: 0;
width: 97px; /* Top nav width */
}
#nav li ul {
/* dropdown items */
position: absolute;
left: -999em;
height: auto;
width: 152px;
w\idth: 13.9em;
font-weight: normal;
font-size: 10px;
border-width: 0.25em;
margin: 0;
text-align: center;
}
#nav li li {
padding-right: 1em;
width: 13em
}
#nav li ul a {
width: 13em;
w\idth: 9em;
}
#nav li ul ul {
margin: -1.75em 0 0 14em;
}
#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li.sfhover ul ul, #nav li.sfhover ul ul ul {
left: -999em;
}
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul {
left: auto;
}
#nav li:hover, #nav li.sfhover {
background: #eda;
}
#content {
clear: left;
}
#content a {
color: #7C6240;
}
#content a:hover {
text-decoration: none;
}
#scaffolding {
height: 70px;
background: white url(/images/header_bg.gif) no-repeat;
border: solid #eda;
border-width: 1px 0 0 0;
margin: 1em 0 0 0;
}
#scaffolding a {
text-decoration: none;
text-indent: -999em;
display: block;
height: 70px;
background: url(/images/hdlogo_flip2.gif) no-repeat;
background-position: 181px 0;
}
#scaffolding a:hover {
background-position: 181px -70px;
}
</style>
<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls*.onmouseover=function() {
this.className+=" sfhover";
}
sfEls*.onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>
</head>
<body>
<div id="container">
<h1>PERCIFORMES!</h1>
<p id="smurf">Welcome to the universe of Perciformes - perch-like fish that include the world famous <strong>Suckerfish</strong></p>
<ul id="nav">
<li><a href="#">About ISOFLEX</a>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="prod_select.html">Product Selection</a></li>
<li><a href="delivery.html">Delivery</a></li>
<li><a href="pricing.html">Pricing</a></li>
<li><a href="quality.html">Quality Assurance</a></li>
<li><a href="terms.html">Terms and Conditions</a></li>
</ul>
</li>
<li><a href="#">Products</a>
<ul>
<li><a href="p_chart.html">ISOFLEX Product Chart</a></li>
<li><a href="alpha_list.html">Alpha Product List</a></li>
<li><a href="dza.html">Depleted Zinc DZA</a></li>
<li><a href="dzo.html">Depleted Zinc DZO</a></li>
<li><a href="o18.html">Oxygen-18</a></li>
<li><a href="synthesis.html">Synthesis Services</a></li>
</ul>
</li>
<li><a href="#">Quote Request</a></li>
<li><a href="#">Resources</a>
<ul>
<li><a href="resources.html#academic">Academic</a></li>
<li><a href="resources.html#industrial">Industrial</a></li>
<li><a href="resources.html#medical">Medical</a></li>
<li><a href="resources.html#research">Research</a></li>
<li><a href="resources.html#scientific">Scientific</a></li>
</ul>
</li>
<li><a href="contact.html">Contact</a></li>
</ul>
<div id="content">
<p>Hello. You have found an example page for <strong>Suckerfish Dropdowns</strong>. Under the hood you will find some nice structured HTML, a smattering of CSS and a teensy bit of JavaScript (that's just 12 lines of it). It's lightweight, it's accessible, it's cross-compatible.</p>
<p>Suckerfish Dropdowns are brought to you by <a href="/ptg/">Patrick Griffiths</a>, <a href="http://www.danwebb.net/">Dan Webb</a> and the letter C. To find out more about Suckerfish Dropdowns, check out the <a href="/articles/suckerfish/dropdowns/">article in HTML Dog</a>. To find out more about perch-like fishes, <a href="http://www.google.com/search?q=perciformes">give Google a try</a>.</p>
<p>Something else that might (possibly) be of interest (maybe) is that this page has an <a href="http://www.alistapart.com/articles/elastic/">elastic layout</a>. Try increasing your browser's text size setting and watch that layout grow! It's just like those toys that expand when you put them in water. Only without the water. And with more HTML. And CSS. Oh forget it. It's not really like them at all.</p>
<p id="scaffolding"><a href="http://www.htmldog.com/" title="Go t'HTML Dog">Go on. Visit HTML Dog</a></p>
</div>
</div>
</body>
</html>