Greetings,
I am making a site with :hover images as backgrounds of links. But oddly enough, only the first link is working at all. The others don't act like links, and don't react to the :hover event.
Here is the germane HTML:
<a href="/" id="home-link" class="icon">Home</a>
<a href="skills/" id="skills-link" class="icon">What I Can Do</a>
<a href="portfolio/" id="portfolio-link" class="icon">My Portfolio</a>
<a href="connect/" id="connect-link" class="icon">Connect With Me</a>
The first one actually goes to the correct spot. The other three don't give the browser any feedback that they are links, and do nothing when clicked. Here is my germane CSS:
#home-link {
background: url(icons-sprite.png) no-repeat 0 0;
top: 30px;
left: 30px;
}
#home-link:hover { background: url(icons-sprite.png) no-repeat 0 -128px; }
#skills-link {
background: url(icons-sprite.png) no-repeat -128px 0;
top: 178px;
left: 286px;
}
#skills-link:hover { background: url(icons-sprite.png) no-repeat -128px -128px; }
The styles for the other two links are identical.
The first shows the :hover state perfectly. The rest remain inert.
I am deducing that there is something wrong with my HTML, but I see nothing wrong with them. This occurs in FF and Chrome.
Any ideas?