I got a reallly simple drop-down menu but got a problem with the submenus width.
See it here: http://dl.dropbox.com/u/70953/SOSfrontpage.html
My HTML is:
<div id="navigation">
<div id="menu-dropdown">
<ul class="menu">
<li class="menu_punkt"><a href="http://itu.dk/people/lfel/Web-kodning/SOSfrontpage.html">Frontpage</a></li>
<li class="menu_punkt"><a href="http://itu.dk/hvem_er_vi_menu/hvem_er_vi.html">Who are we?</a></li>
<li class="menu_punkt"><a href="http://itu.dk/oplev_sos_menu/oplev_sos.html">This is a test</a>
<ul>
<li><a href="http://itu.dk/people/lfel/Web-kodning/xxx.html">Your profile</a></li>
<li><a href="http://itu.dk/people/lfel/Web-kodning/xxx.html">New profile</a></li>
</ul>
</li>
<li class="menu_punkt"><a href="http://itu.dk/sos_profil_menu/sos_profil.html">SOS Profile</a>
<ul>
<li><a href="http://itu.dk/people/lfel/Web-kodning/din_profil.html">Your profile</a></li>
<li><a href="http://itu.dk/people/lfel/Web-kodning/ny_bruger.html">New user</a></li>
</ul>
</li><li class="menu_punkt"><a href="http://itu.dk/log_ind.html">Log ind</a></li>
</ul>
</div>
</div>
and my CSS is:
/*horisontal navbar*/
#menu-dropdown {
list-style: none;
position: absolute;
top: 600px;
}
#menu-dropdown ul li {
float:left;
list-style-type: none;
font-size: 0.8em;
}
#menu-dropdown li ul {
position: absolute;
display: none;
background-color:#cdc3a2;
padding: 0px;
margin-bottom:1px;
}
#menu-dropdown ul ul li {
clear: both;
}
#menu-dropdown ul li a {
display: block;
padding: 10px;
color:#102B47;
text-decoration:none;
font-family:Verdana, Geneva, sans-serif;
font-size: 1em;
}
#menu-dropdown ul li a:hover {
background-color: #cdc3a2;
}
#menu-dropdown li:hover ul, li.over ul {
display: block;
}
You can see my problem here: http://dl.dropbox.com/u/70953/SOSfrontpage.html
Regards - Mestika