Forum Moderators: not2easy
<div id= "wrapper">
<div id= "siteNavigation">
<ul><li><a href="#" class="active">Home</a></li>
<li><a href="#">Team</a>
<ul>
<li><a href="#">Lucy</a></li>
<li><a href="#">Hannah</a></li>
<li><a href="#">Phil</a></li>
<li><a href="#">Claire</a></li>
<li><a href="#">Carly</a></li>
<li><a href="#">James</a></li>
<ul>
<li> <a href="#">image/details</a></li> <!-- I want this to be a picture when once clicked takes you to a URL -->
</ul> <!-- end james pic -->
</ul> <!--end inner ul-->
<li><a href="#">Trainees</a></li>
</ul> <! End Ul-->
</li> <!-- End li main-->
</ul>
</div> <!--siteNavigationend-->
</div> <!-- wrapper end-->
</body>
</html>
}
#siteNavigation ul ul { /**this is the thing I used to hide the drop down menu**/
position:absolute;
visibility:hidden;
top:32px;
}
#siteNavigation ul li:hover ul { /**this is the thing I used to show it with a hover**/
visibility:visible;
}
margin: 0 auto; /* will center the whole navigation if the width is less than 100% */
width: 80%; from the same rule - I only put that in as it's usually the first thing asked after a long technical explanation - "How do I center blah blah.." - one rule works with the other as in my note, if you want an element to be 99% change width to that, if you don't want it centered remove margin: 0 auto;.. simplez ;)