body {text-align:center;margin:0; list-style: none;} ul li {float: left; width: 200px; height: 40px; background-color: black; color: white; opacity: .8; line-height: 40px; text-align: center; font-size: 20px; } ul li a {text-decoration: none; color: white; display: block; } ul li a-hover { background-color: green; } ul li ul li { display: none; } ul li:hover ul li { display: block; }