I'm having a problem with conflicting css rollovers.
I read
Dave Shea's tutorial on css image rollovers, and want to use these techniques on my site, but I am having a problem.
I want to use two css rollovers on one page.
One css rollover is a logo, and the code is based exactly on
this example (since my shapes are not overlapping, I don't have the problem that example shows).
The second css rollover is a menu, just like the one in
this example.
I have made both of these as standalone examples, and the css rollovers work perfectly with my logo, and my menu buttons.
The problem is that when I try to position the two rollovers on the same page, with the menu buttons rollovers almost directly below the logo rollovers, it goes all wonky, and the logo rollovers bring up parts of the button rollover images in odd locations, and not all of the logo rollovers work.
(the menu buttons rollover, which are below the logo, work fine).
I have a general idea of why this is occurring, but have no idea how to separate the two css rollovers so that the logo rollovers do not "see" the button rollovers.
The code really is exactly like the examples I have linked to, and again, as standalone items, they work fine for me.
Can someone advise how best to code the positioning of these two on the same page so no conflicts occur?
I tried putting the two rollover sections in their own divs, and I tried z-axis stuff, neither of these solved the problem, at least as I implemented them.
posted by ceri richard at 10:26 AM on September 3