Horizontal navigation menu consists of a list <UL> with rollover effect
Example
Code Html
<div id="contenitoremenu">
<ul id="listamenu">
<li id="elementoattivo"><a href="#"><div class="elementoCentratoVerticalmente">Home</div></a></li>
<li><a href="#"><div class="elementoCentratoVerticalmente">Chi sono</div></a></li>
<li><a href="#"><div class="elementoCentratoVerticalmente">Portfolio lavori</div></a></li>
<li><a href="#"><div class="elementoCentratoVerticalmente">Servizi</div></a></li>
<li><a href="#"><div class="elementoCentratoVerticalmente">Contatti</div></a></li>
</ul>
</div>
Code CSS
#contenitoremenu { padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; height: 120px; } #listamenu { margin: 0px; padding: 0px; } #listamenu ul, #listamenu li { padding: 0px; display: inline; list-style-type: none; margin: 0px; } #listamenu a:link, #listamenu a:visited { float: left; font-weight: bold; text-decoration: none; color: #999; border: 3px solid #CCC; margin-top: 0px; margin-right: 8px; margin-bottom: 0px; margin-left: 0px; width: 100px; text-align: center; -moz-border-radius: 100px; -webkit-border-radius: 100px; -khtml-border-radius: 100px; border-radius: 100px; text-transform: uppercase; height: 100px; padding: 0px; display: block; vertical-align: middle; } #listamenu a:hover, #listamenu a:active { font-weight: bold; text-decoration: none; color: #000; border: 3px solid #F30; margin-top: 0px; margin-right: 8px; margin-bottom: 0px; margin-left: 0px; padding: 0px; width: 100px; height: 100px; text-align: center; vertical-align: middle; display: block; } #listamenu li#elementoattivo a:link, #listamenu li#elementoattivo a:visited { font-weight: bold; text-decoration: none; color: #999; border: 3px solid #F30; margin-top: 0px; margin-right: 8px; margin-bottom: 0px; margin-left: 0px; padding: 0px; width: 100px; text-align: center; height: 100px; vertical-align: middle; display: block; } #listamenu li#elementoattivo a:hover, #listamenu li#elementoattivo a:active { font-weight: bold; text-decoration: none; color: #000; border: 3px solid #F30; margin-top: 0px; margin-right: 8px; margin-bottom: 0px; margin-left: 0px; padding: 0px; width: 100px; height: 100px; text-align: center; vertical-align: middle; display: block; } .elementoCentratoVerticalmente { width: 100px; margin-top: 42px; text-align: center; vertical-align: middle; display: block; }