CSS menu help

albc123

New Member
Hello !
i'm trying to make a menu , with tables and CSS. The code is :
.......
......
<ul class="menu">
<li class="item"><a href="index.html">Main</a></li>
<li class="item"><a href=info.html">Info</a></li>
<ul class="subitem">
<li><a href=contact.html">Contact</a></li>
<li><a href="about.html">About</a></li>
</ul>
</ul>
-------
------
when i clik on info the page is open and the submenu is open. .but i want that when i click on info , to remain on the current page and just open submenu.( itry to put # replacing info.html but no effect)
what can i do.
Thank you.
 

d a v e

New Member
post a link to the whole page - upload it as a test to your server. we can't tell what's happening without seeing the code AND the css ;)
 

PixelPusher

Super Moderator
Staff member
Tables?
I dont see any tables in your code snippet...
Rule of thumb if you are using nested lists <ul> for sub menus you typically want the submenu list for to reside within the main list item. Like so:

HTML:
<ul class="nav">
   <li><a href="">Level 1</a>
         <ul>
                <li><a href="">Level 2</a></li>
         </ul>
   </li>
</ul>
 
Top