Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7519009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:50:01+00:00 2026-05-30T01:50:01+00:00

I am currently at a loss with this particular bit of HTML/CSS problem. I

  • 0

I am currently at a loss with this particular bit of HTML/CSS problem. I have a carousel that has two absolutely positioned li elements on each side to allow for navigation (previous image/ and next image). These two li elements show up correctly in all browsers other than all versions of IE (7-9), however, in IE the li elements are shown behind the main element, even if I give them a z-index.

I am probably missing something as it was the end of the day and I was very tired, but I cannot seem to figure out why this is.

What makes this problem even weirder is that the li elements display correctly if I give them a background! As soon as I give them a background-color, they appear in front of the element

I suspect it may be a bug with IE as it is rare for me to fail to debug a CSS file, however, as I said, I was pretty tired.

Please ignore the opacity values and display values, these are altered with jQuery. They are completely irrelevant.

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;height:250px;background:#fff;border:1px solid #999;border-radius:10px;margin:auto;padding:0;overflow:hidden;}
header#carousel div#carousel-canvas {position:static;height:250px;}
header#carousel div#carousel-canvas figure {display:block;position:static;float:left;width:788px;height:250px;border-radius:10px;margin:0;padding:0;overflow:hidden;}
header#carousel div#carousel-canvas figure img {width:788px;height:250px;}

header#carousel nav ul#arrow-nav {position:absolute;top:1px;left:1px;width:788px;height:250px;padding:0;margin:0;list-style-type:none;}
header#carousel nav ul#arrow-nav li {position:absolute;display:block;width:200px;height:250px;z-index:10;}
header#carousel nav ul#arrow-nav li#carousel-arrow-previous {top:0;left:0;}
header#carousel nav ul#arrow-nav li#carousel-arrow-next {top:0;right:0;}
header#carousel nav ul#arrow-nav li a {position:absolute;top:50%;margin-top:-35px;display:none;width:50px;height:70px;overflow:hidden;opacity:0;text-indent:-1000px;}
header#carousel nav ul#arrow-nav li#carousel-arrow-previous a {left:20px;background-position:-95px -156px;}
header#carousel nav ul#arrow-nav li#carousel-arrow-next a {right:20px;background-position:-153px -156px;}

EDIT

I meant to say ‘li’ not ‘div’

UPDATE

It seems that the problem may not be with HTML/CSS as I have managed to determine that the element is being displayed at the front of the page. The problem seems to be occuring with jQuery. The ‘mouseenter’ function appears not to fire when I move my mouse ove the element. Is this a known bug in jQuery?

SOLUTION

I have figured out what the problem is. It is to do with the ‘hasLayout’ of the elements I have mentioned. Because they have a transparent background, the jQuery event is not captured when I place my mouse over them. The solution to this is to set a transparent background with an image.

Please refer to:
Mouseenter only fired on border of transparent div in IE9

Thank you for all your advice, and sorry to waste your time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T01:50:02+00:00Added an answer on May 30, 2026 at 1:50 am

    I think this is being caused by your “text-indent” being set as a negative on the anchors. I believe it has something to do with the anchor element controlling its own layout in IE, and not halting the text at its edges. Here is a brief description of the “hasLayout” property and some of the issues it can cause in IE. I removed the “text-indent” and the Previous / Next links appeared as normal over any images I set in the carousel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently, we use a giant configuration object that is serialized to/from XML. This has
Firefox has a certain tolerance when rendering bad HTML. This means even if a
I currently have a GAME table with two fields user_id, win win = 1
Forgive me if this post is too naive-sounding. I have a Twitter app that
I have a table, let's call it My_Table that has a Created datetime column
Currently, I don't really have a good method of debugging JavaScript in Internet Explorer and
Currently we have a hybrid ASP/PHP setup connecting to a SQL Server 2005 database.
Currently we have a project with a standard subversion repository layout of: ./trunk ./branches
Currently, I am writing up a bit of a product-based CMS as my first
Currently I know of only two ways to cache data (I use PHP but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.