1
Could someone help me? I would like to turn this menu into a dropdown menu, but I don’t have the knowledge yet, and I would like to ask for help.
// CSS
nav#mainnav ul {
padding: 0;
margin: 0;
list-style: none;
}
nav#mainnav li {
padding:0;
border-bottom: 1px solid #99C581;
border-top: 1px solid #6FAB4F;
}
nav#mainnav li.selected-item {
border-bottom:none;
}
nav#mainnav li.selected-item a,
nav#mainnav li.selected-item a:hover {
color:#80B763;
font-weight:bold;
background: #fff;
}
nav#mainnav li a:hover {
background:#669D48;
color: #fff;
text-decoration:none;
}
nav#mainnav li a {
color: #f0f0f0;
display: block;
padding: 15px 17px;
text-align: right;
font-weight: bold;
text-decoration: none;
}
// HTML
<nav id="mainnav">
<ul>
<li class="selected-item"><a href="index.html">Home</a></li>
<li><a href="#">Exemplo 1</a></li>
<li><a href="#">Exemplo 2</a></li>
<li><a href="#">Exemplo 3</a></li>
<li><a href="#">Exemplo 4</a></li>
</ul>
</nav>
See on the website Dinamic Drive. There are many things ready, and it is possible to customize.
– Eduardo Mendes
http://www.w3schools.com/css/css_dropdowns.asp
– Gabriel Rodrigues