Superfish z-index problem in Internet Explorer 7

Struggling to resolve the z-index problem with IE7 for superfish.

Check out this Jsfiddle example

All I want is for the menu to appear on top of the background font, not the other way around.

I've attempted adding z-index to both sh-menu classes and li's but it doesn't seem to be effective.

Any suggestions on what else I should consider?

Answer №1

In my superfish code, I specifically define z-index values in these two locations:

.sf-menu li {
    float: left;
    position: relative;
    z-index: 999; /* Keeps drop-down menus above other elements */
}

.sf-menu li:hover ul,
.sf-menu li.sfHover ul {
    left: 0;
    top: 100%;    /* Ensures the drop down appears directly below the navigation */
    z-index: 99;
}

Answer №3

Include the z-index property within your .navbar selector instead.

For example:

.navbar {
  z-index: 10000;
}

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Troubleshooting issues when utilizing flexbox in Firefox and Chrome version 48

Chrome 47 Behavior: The .scroll div scrolls correctly in Chrome 47, taking up 100% height using flex. Firefox Behavior: In Firefox, the .scroll div does not scroll properly and instead uses the content height. What is the solution that works across diffe ...

Should I utilize Sockets or Ajax for my project?

My Login Script Journey I have a goal in mind - to create a login script using Nodejs. I am currently exploring the options of utilizing sockets or ajax posts for this task. My Progress So Far I have Nodejs installed and have referenced this code in my ...

Tips for uploading a webform with a file via Jquery/Ajax to a webmethod

Is it feasible? I have a webform with textboxes and a file upload section. I am attempting to send the data to a web method using the .ajax() method. It appears that sending file content to the web method in this way may not be achievable as I am unable to ...

Modifying CSS styles in real-time according to the present data

Is there a way to dynamically change CSS values based on current CSS values? For example, instead of explicitly setting different values like this: .test{ margin-top:100px; } .test:hover{ margin-top:90px; } Is it possible to achieve the same eff ...

Tips for choosing a href link from a JSON data structure

I'm struggling with JSON. I have a JSON object that looks like this: {main: "<a href="www.google.com"><img src="google_logo.png"></a>"} This is just a small part of my code. For example, I access the "main" object with json.main an ...

Effortless JavaScript function for retrieving the chosen value from a dropdown menu/select element

I've figured out how to retrieve the value or text of a selected item in a dropdown menu: document.getElementById('selNames').options[document.getElementById('selNames').selectedIndex].value In order to simplify this code, I&apos ...

Issue with triggering local storage event in IE 11 Enterprise mode

Currently, my web application is operating in IE 11 enterprise mode due to compatibility issues with IE 8 (although IE 11 support is still pending). The usage of localStorage involves a certain action, such as redirecting to the logout page, whenever ther ...

Is it acceptable to utilize a UUID as an HTML tag ID without encountering any problems?

I need to handle dynamic content accessible through an index on a side panel. When a user selects an element from the side panel, I use the ID to determine which data they're requesting so that I can generate the corresponding content for the main sec ...

Place the content within a div with centered alignment

I currently have 4 divs within my .html file: <div id="div"> <div class="contenido">1</div> </div> <div id="divSupIzq"> <div class="contenidos"><div id="textoDinamico">120 </div><div id="texto ...

What is the method for inserting a clickable link into a data-image line of code using CSS3?

Recently, I delved into the world of CSS and am still getting the hang of it, Below is a snippet of code that I have been working on, <div id='ninja-slider'> <ul> <li> <div data-image="images/md/1.j ...

GWT's Stylish Image Carousel

Can anyone recommend a simple image slider for GWT that meets the following requirements: Slides several images from right to left when user clicks on the image (selected image should be at the center) Has endless looping capability (the last image shoul ...

What is the best way to use Bootstrap to position form input at the bottom of a page?

Does anyone have any tips on aligning a bootstrap form input to the bottom of the page? I've tried a few different methods but haven't had any luck. Here's how it looks currently. And here's how I'd like it to look. I'm aim ...

Is it possible to reorganize the order of elements in a

My goal is to create a flex column layout where the image appears first. However, I'm facing an issue with the code below, as it only changes the order when the flex direction is set to row (image on the left). It does not work for rows. </head> ...

js Issues with the Drop Down Menu

I'm having trouble with creating a dropdown menu. When I hover over the page, it works fine, but if I hover over the link it doesn't work properly. In short, this drop-down list is behaving opposite to what I want. I need a fix or a better way to ...

Optimizing the performance of "document.createElement"

When attempting to display multiple rows of data in a popup using a for loop, I initially utilized text strings to create and append the div elements. However, I discovered that using document.createElement resulted in a 20% improvement in performance. D ...

What steps can I take to ensure that I am using jQuery version 1.6 in my

After transitioning from jQuery 1.3 to jQuery 1.6, I find it challenging to determine if the code I'm currently writing is compliant with the newer version. It's not easy to pinpoint all the API differences between the two versions. Do you have ...

CSS slider experiencing issues

I'm currently working on creating a custom CSS ticker by referencing various examples online. I've managed to develop something that functions well, but it seems to only cycle through the initial 4 list items. Once it reaches the 4th item, it loo ...

Creating a web form with the ability to select multiple images using Javascript

Currently, I am in the process of developing an HTML form that enables users to select an image, a URL, and text that will be inserted as a <li> into a webpage. However, I am facing an issue where I want users to create multiple <li> per input. ...

Words piling up one upon the other

I've encountered an issue where the text is stacking on top of itself in Internet Explorer only. Here is the specific CSS for IE: h2 { font-family: 'Paytone One', sans-serif; font-size: 30px; position: relative !important; top:-150px !impor ...

Ensuring Jquery validation is triggered before submitting a form to PHP

I have been struggling with a particular issue and decided to seek help. I have a form filled with user data that I have successfully validated using js/jQuery before sending it to php for processing. Here is how I am achieving this: form.submit(functio ...