Jump to content
Killersites Forums

Css Submenu (No Spry)


DaVor
 Share

Recommended Posts

Hi, trying to add submenus to a menubar that I coded with css, can someone show me how to add submenus to the code below. Thanks

<body>

<div id="logo">Content for id "logo" Goes Here</div>

<div id="picture">Content for id "picture" Goes Here</div>

<div id="content">Content for id "content" Goes Here</div>

<div id="menubar">

 

<ul>

<li><a href="#"> Home</a>

<ul>

<li><a href="#"> Link 1</a></li>

<li><a href="#"> Link 1</a></li>

<li><a href="#"> Link 1</a></li>

<li><a href="#"> Link 1</a></li>

 

 

</ul><!--closing of inner ul tag-->

</li><!--end of li tag-->

</ul><!--end of menubar ul tag-->

 

<ul>

<li><a href="#"> Home</a>

<ul>

<li><a href="#"> Link 1</a></li>

<li><a href="#"> Link 1</a></li>

<li><a href="#"> Link 1</a></li>

<li><a href="#"> Link 1</a></li>

 

 

</ul><!--closing of inner ul tag-->

</li><!--end of li tag-->

</ul><!--end of menubar ul tag-->

 

 

<ul>

<li><a href="#"> Home</a>

<ul>

<li><a href="#"> Link 1</a></li>

<li><a href="#"> Link 1</a></li>

<li><a href="#"> Link 1</a></li>

<li><a href="#"> Link 1</a></li>

 

 

</ul><!--closing of inner ul tag-->

</li><!--end of li tag-->

</ul><!--end of menubar ul tag-->

Link to comment
Share on other sites

<ul>
     <li><a href="#"> Home</a>
          <ul>
               <li><a href="#"> Link 1</a></li>
               <li><a href="#"> Link 1</a></li>
               <li><a href="#"> Link 1</a></li>
               <li><a href="#"> Link 1</a></li>
    	</ul><!--closing of inner ul tag-->
     </li><!--end of li tag-->
    <li><a href="#"> Home</a> 
      	<ul>
               <li><a href="#"> Link 1</a></li>
              <li><a href="#"> Link 1</a></li>
             <li><a href="#"> Link 1</a></li>
             <li><a href="#"> Link 1</a></li>
     	</ul><!--closing of inner ul tag-->
     </li><!--end of li tag-->
...
</ul><!--end of menubar ul tag--> 						 						

 

Almost what you had, but your main ul doesn't close until the end.

Link to comment
Share on other sites

Thanks for your help, is it possible to insert the code in my code to show where to put it, then I can do the same with the other menus. Also what style sheet do I reference the code to i.e. #menu ?? ?? ?? ??.

Thanks much....

DaVor

 

<ul>
     <li><a href="#"> Home</a>
          <ul>
               <li><a href="#"> Link 1</a></li>
               <li><a href="#"> Link 1</a></li>
               <li><a href="#"> Link 1</a></li>
               <li><a href="#"> Link 1</a></li>
    	</ul><!--closing of inner ul tag-->
     </li><!--end of li tag-->
    <li><a href="#"> Home</a> 
      	<ul>
               <li><a href="#"> Link 1</a></li>
              <li><a href="#"> Link 1</a></li>
             <li><a href="#"> Link 1</a></li>
             <li><a href="#"> Link 1</a></li>
     	</ul><!--closing of inner ul tag-->
     </li><!--end of li tag-->
...
</ul><!--end of menubar ul tag--> 						 						

 

Almost what you had, but your main ul doesn't close until the end.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...