OK, I have searched for ages trying to find a solution for this and have had no luck. I am using the CSS background image rollover technique - where you have a <DIV> with a background, then, on rollover of that <DIV> you shift the background. The background is just one image with both the normal and rollover states in one.
My CSS code for the navigation is:
So, the basic makeup is that there is one container (navcontainer) and inside this, 6 different <DIV>s with the dimensions of one state. On the normal set the background so it positions it in the normal state and then, when that <DIV> is rolled over, the background is shifted.
If you look at www.rednerve.com in Firefox, the rollovers work fine. But, go to www.rednerve.com in Internet Explorer and they don't work. You go over the link but nothing happens.
Please excuse my (probably) messy CSS code, I am still relatively new to CSS so don't laugh :p If anyone can help me out with this problem, I'd be really grateful!
Thanks again,
Will.
My CSS code for the navigation is:
Code:
#navcontainer {
width:750px;
height:33px;
text-align:left;
padding:0px;
background:url(nav_bg.jpg) repeat-x;
border-bottom:1px solid #E6E6E6;
}
#home_link {
height:32px;
width:55px;
text-indent: 10000px;
overflow:hidden;
background:url(home_link.jpg) top left no-repeat;
float:left;
display:block;
}
#home_link:hover {
background-position: bottom left;
}
#about_link {
height:32px;
width:51px;
text-indent: 10000px;
overflow:hidden;
background:url(about_link.jpg) top left no-repeat;
float:left;
display:block;
}
#about_link:hover {
background-position: bottom left;
}
#portfolio_link {
height:32px;
width:61px;
text-indent: 10000px;
overflow:hidden;
background:url(portfolio_link.jpg) top left no-repeat;
float:left;
display:block;
}
#portfolio_link:hover {
background-position: bottom left;
}
#services_link {
height:32px;
width:58px;
text-indent: 10000px;
overflow:hidden;
background:url(services_link.jpg) top left no-repeat;
float:left;
display:block;
}
#services_link:hover {
background-position: bottom left;
}
#quote_link {
height:32px;
width:50px;
text-indent: 10000px;
overflow:hidden;
background:url(quote_link.jpg) top left no-repeat;
float:left;
display:block;
}
#quote_link:hover {
background-position: bottom left;
}
#contact_link {
height:32px;
width:54px;
text-indent: 10000px;
overflow:hidden;
background:url(contact_link.jpg) top left no-repeat;
float:left;
display:block;
}
#contact_link:hover {
background-position:bottom left;
}
So, the basic makeup is that there is one container (navcontainer) and inside this, 6 different <DIV>s with the dimensions of one state. On the normal set the background so it positions it in the normal state and then, when that <DIV> is rolled over, the background is shifted.
If you look at www.rednerve.com in Firefox, the rollovers work fine. But, go to www.rednerve.com in Internet Explorer and they don't work. You go over the link but nothing happens.
Please excuse my (probably) messy CSS code, I am still relatively new to CSS so don't laugh :p If anyone can help me out with this problem, I'd be really grateful!
Thanks again,
Will.






