troubleshooting Question

Need help getting CSS sprite rollover to work

Avatar of Eric Bourland
Eric BourlandFlag for United States of America asked on
10 Comments1 Solution448 ViewsLast Modified:
Hello, experts. I've been staring at this problem for several days now. (I'm stubborn.) I am trying to get a sprite rollover to work on this page:

When you mouse over the Home image, the image should be replaced with another, blue version of the image.

The background image is located here:

The goal, in the end, will be to set up all of the rollover images displayed in the header.png file, above.

Thank you for any advice.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>TIR Sprite Setup</title>
<!--<link rel="stylesheet" type="text/css" media="screen" href="nav.css" />-->
<style type="text/css">

html	{

body {
	margin:0 auto;

/* Navigation
----------------- */

#navlist {   position:relative;/* background: transparent url(header.png) no-repeat;*/ width:1008px; height:390px; margin:0 auto; padding:0;

#navlist li {   padding:0;list-style:none;position:absolute;top:180px; left:70px;   }

#navlist li, #navlist a {     height:94px;display:block;   }

#navHome        a {width:93px; height:94px;}

#navHome a:link, #navHome a:visited    {background: transparent url('') -70px -180px;}

#navHome a:hover, #navHome a:focus    {background: url('') -70px -394px;}




<ul id="navlist">
    <li id="navHome"><a href=""></a></li>
    <li id="navAuthor"><a href=""></a></li>
    <li id="navPress"><a href=""></a></li>
    <li id="navBlog"><a href=""></a></li>


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros