Dropdown menu without javascript

css, html, menu

Solution

it is my sample of css dropdown menu: i hope be useful:

in HTML, and CSS:

#menu, #menu ul
{
 list-style: none;
 border: 1px solid #000;
 background-color: #ecffec;
 padding: 0 0 26px 0;
 margin: 0;
}
#menu li
{
 float: left;
 margin-right: 3px;
 border: 1px solid #ecffec;
 position: relative;
}
#menu ul
{
 position: absolute;
 top: 25px;
 left: -1px;
 width: 200px;
 padding: 0;
 display: none;
}
#menu ul li
{
 float: none;
 margin: 0;
 padding: 0;
 line-height: 15px;
}
#menu a:link, #menu a:visited
{
 display: block;
 font-family: Tahoma;
 font-size: 0.75em;
 font-weight: bold;
 text-align: left;
 text-decoration: none;
 color: #000;
 padding: 5px;
}
#menu li:hover
{
 background-color: #ffd98a;
 border: 1px solid #000;
}
#menu li:hover ul
{
 display: block;
}
<ul id="menu">
  <li><a href="#">Programming Language</a>
    <ul>
      <li><a href="#">Java</a></li>
      <li><a href="#">PHP</a></li>
      <li><a href="#">Python</a></li>
      <li><a href="#">Asp Classic</a></li>
      <li><a href="#">ASP.NET</a></li>
      <li><a href="#">javascript</a></li>
      <li><a href="#">Perl</a></li>
    </ul>
  </li>
  <li><a href="#">Database</a>
    <ul>
      <li><a href="#">SQL Server 2005</a></li>
      <li><a href="#">Oracle</a></li>
      <li><a href="#">MySQL</a></li>
      <li><a href="#">DB2</a></li>
    </ul>
  </li>
   <li><a href="#">Help</a></li>
</ul>

Problem

I have a menu with tabs, and on hover of a tab a list of things appear at the bottom of the tab. Then, I wanted to do that the list of thing go down with a transition( before it was display:block). My problem is that when the transition will start, the top of the list must be a certain multiplication ( the width of a tab * the number of tabs ). But I don't want any javascript. Is there a way to do that ?

Original source