I\'d like to make a black navigation bar for my website, and when you hover over the first link it goes orange, the second link it goes green, etc. I know how to change colo
remove the space between li and #link2.
li
#link2
#navbar ul li#link1 a:hover { color: #ffffff; background-color: #C62222; padding-top:15px; padding-bottom:15px; } #navbar ul li#link2 a:hover { color: #ffffff; background-color: #28C622; padding-top:15px; padding-bottom:15px; }