body { margin: 2% 10%; } #menu ul { list-style-type: none; margin:0; padding:0; } #menu ul li.fo { /*display: inline*/; float:left; width: 60px; } #menu a { text-decoration: none; padding: 0 5px; background-color: #005500; color: white; display:block; } #menu a:hover { background-color: yellow; color: black; } #menu ul ul { position: absolute; display: none; } #menu ul li:hover ul { display:block; } #menu ul ul li { display: block; }