troubleshooting Question

Need help getting CSS sprite rollover to work

Avatar of Eric Bourland
Eric BourlandFlag for United States of America asked on
CSS
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:

http://thethirdindustrialrevolution.com/test/TIR_rollovers.html

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: http://thethirdindustrialrevolution.com/test/header.png

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.

Eric
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<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	{
margin:0;
}

body {
	margin:0 auto;
	padding:0;
	}

/* 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('http://thethirdindustrialrevolution.com/test/header.png') -70px -180px;}

#navHome a:hover, #navHome a:focus    {background: url('http://thethirdindustrialrevolution.com/test/header.png') -70px -394px;}

</style>


</head>

<body>

<ul id="navlist">
    <li id="navHome"><a href="http://thethirdindustrialrevolution.com/"></a></li>
    <li id="navAuthor"><a href="http://thethirdindustrialrevolution.com/pages/About-Jeremy-Rifkin.cfm"></a></li>
    <li id="navPress"><a href="http://thethirdindustrialrevolution.com/press.cfm"></a></li>
    <li id="navBlog"><a href="http://thethirdindustrialrevolution.com/blog.cfm"></a></li>
</ul>

</body>
</html>
ASKER CERTIFIED SOLUTION
Gregg

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