I've been trying to make a drop down menu for a title bar, and am running into some problems. I'm using the example in
http://www.cssnewbie.com/example/css-dropdown-menu/ as a basis for all the CSS/JavaScript coding.
Here's what I have:
<body>
<div id="wrap">
<h1>Title</h1>
<ul id="navbar">
<li><a href="#">Home</a></li>
<li><a href="#">Item A</a></li>
<li><a href="#">Item B</a></li><ul>
<li><a href="#">Option A</a></li>
<li><a href="#">Option B</a></li>
<li><a href="#">Option C</a></li>
</ul></li>
<li><a href="#">Item C</a></li>
</ul>
Options A-C should all appear in a drop down when the mouse cursor goes over Item B. Instead, they on the navigation bar. Any idea what I'm doing wrong here?
Sorry if I'm not giving enough info; I'm quite new to this field. Tell me what else you need to know. The CSS/JavaScript stuff can be assumed to come directly from the website.