I'm facing a challenge with my HTML/CSS code. I have a carousel that includes two li elements positioned absolutely on each side for navigation but they are not displaying correctly in IE versions 7-9 - they appear behind the main element regardless of setting the z-index.
Despite my efforts, I couldn't find a solution as I was tired at the end of the day and may have overlooked something.
Oddly enough, adding a background-color to the li elements makes them show up in front of the main element!
This issue could be due to a bug in IE since I rarely encounter problems debugging CSS files, but again, my fatigue may be affecting my troubleshooting abilities.
Rest assured, the opacity values and display values are modified by jQuery and do not impact this problem.
HTML:
<header id="carousel">
<div id="carousel-holder">
<div id="carousel-canvas" style="width: 2364px; ">
<figure id="more-business" class="">
<img>
</figure>
<figure id="more-money" class="active">
<img>
</figure>
</div>
</div>
<nav>
<ul id="arrow-nav">
<li id="carousel-arrow-previous"><a href="#previous" title="Previous" class="sprite">Previous</a></li>
<li id="carousel-arrow-next"><a href="#next" title="Next" class="sprite">Next</a></li>
</ul>
</nav>
</header>
CSS:
header#carousel {position:relative;width:790px;height:275px;margin:10px auto 0;padding:0;overflow:hidden;}
header#carousel div#carousel-holder {width:788px;... properties continue
EDIT
Mistakenly referred to 'div' instead of 'li'
UPDATE
The root of the issue seems to lie beyond HTML/CSS since upon closer inspection it has been determined that the element is actually displayed at the forefront of the page. The problem seems tied to jQuery as the 'mouseenter' event doesn't trigger when hovering over the element. Could this be a known jQuery bug?
SOLUTION
After thorough investigation, it appears the problem stems from the 'hasLayout' attribute of the mentioned elements. Their transparent backgrounds prevent the detection of jQuery events when the mouse is placed over them. The fix is to set a transparent background with an image incorporated into it.
Please refer to: Mouseenter only fired on border of transparent div in IE9
Appreciate all your insights and apologies for any time wasted.