Jump to content

Adding <a href> to CSS Navbar


Mark H
 Share

Recommended Posts

I'm having trouble adding links to my CSS navigation bar. The trouble I am having is with the top level (e.g. "navHome" and "navDoctrine").The drop levels seem to work okay, but because the top level leaves the tag open (for the nested list) I can't seem to add a normal <a href> </a> tag.How would I do this? I'm wondering about adding a transparent image to wrap with the <a> tag, but this seems messy.

<div id="nav">	   <ul id="navList">		 <li id="navHome">		   <ul class="navDrop">		   <li class="navTopDrop">Test One</li>		   <li class="navMidDrop">Test Two</li>		   <li class="navMidDrop">Test Three</li>		   <li class="navBottomDrop">Test Four</li>	</ul>		 </li>		   <li id="navDoctrine">		   <ul class="navDrop">		   <li class="navTopDrop">Test One</li>		   <li class="navMidDrop">Test Two</li>		   <li class="navBottomDrop">Test Three</li>		 </ul></li>

Thanks,Mark.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...