Identifier selectors take precedence over pseudo-class selectors.
thus, the rule #will not be exceeded by the rule :.
either use an important directive
#nav a:hover {
background-position:1px -15px!important;
}
or make the rule more specific
#nav a#home:hover, #nav a#about-us:hover {
background-position:1px -15px;
}
source
share