"The z-index of Flexslider's navigation feature is not functioning properly

Flexslider is functioning well on my website. However, I wanted it to slide under a navigation bar so I adjusted its margin-top to -75px and its div.flexslider z-index to -2. The result looks great, but now the next/prev arrows don't animate in and the click navigation doesn't respond. Currently, it's just displaying an automatic slideshow. If I remove the z-index setting, everything works fine but the slider shows over the top of the nav bar.

The site is built using bootstrap 3 :-

    <div class="row">            
            <div class="flexslider">
              <ul class="slides">
                <li>
                  <img src="images/garden.jpg" />
                </li>                      
                <li>
                  <img src="images/house.jpg" />
                </li>
              </ul>
            </div>               
    </div>

No errors are displayed in Chrome's dev tools. In Firefox, the slider disappears completely unless the browser window is resized.

What other adjustments do I need to make to enable the prev/next and slide navigation to function properly with the z-index set as it is, or is there an alternative solution?

Answer №1

I discovered that the solution was to remove the z-index:-2 on the flexslider. To bring the nav on top, it was necessary to include position:relative AND z-index:10. It turns out that position:relative was crucial in finding the answer.

Sharing this in case it benefits someone else.

Craig

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

Is the background color change function with AJAX not functioning properly when using array values?

Let me simplify my issue. I have an AJAX call to fetch a JSON array with "aht_value". Based on this value, I am creating a color gradient from green to red (creating a heat map). The values are being output correctly. The issue: The problem lies within m ...

Encountering challenges when adjusting height based on screen size in Angular 6

Utilizing HostListener to adjust the height based on screen size works well. However, during page load, "event.target.innerHeight" returns undefined until the browser height is changed. To address this issue, the value needs to be initialized. Initially, i ...

The JSON.parse function encounters issues when trying to parse due to a SyntaxError: Unexpected character found after JSON at position 2, causing it to be unable

I've encountered an issue with my JavaScript code when trying to retrieve the value of the details field from JSON data. While all other values are successfully passed to their respective fields, the details field generates the following error: "Unabl ...

Distinguishing between a hidden input containing an "empty string" and one that is "null" in Javascript and VB

While attempting to JSON deserialize a collection in VB, I encountered the following issue. Dim items = JsonConvert.DeserializeAnonymousType(Page.Request.Params("Items"), New List(Of ItemDto)) An error occurred during deserialization where the string "va ...

Troubleshooting JavaScript within Embedded Resources

Looking for the most effective method of debugging JavaScript in Visual Studio when dealing with embedded resource files? Due to the fact that JavaScript is compiled into a library, setting breakpoints directly on the source file may not yield desired res ...

What distinguishes event-stream.through from event-stream.map?

After reviewing the documentation on event-stream, it appears that the main distinction between these two methods is whether they operate synchronously or asynchronously. However, I am still unclear on the true significance of this difference. ...

Mobile browser experiences video freezing when src is set through useState, yet it starts playing when triggered by a button click or when the video is set to M

Hey awesome folks at the StackOverflow Community, I'm currently encountering a perplexing issue with a video element in my web application. The video is supposed to play automatically on both desktop and mobile browsers. However, I've run into a ...

How to keep a window/tab active without physically staying on that specific tab

Whenever I'm watching a video on a website and switch to another tab, the video stops playing. But when I switch back to the original tab, the video resumes. Is there a trick to prevent the video from stopping? I've already tried using scrollInto ...

Using SignalR for lengthy processes: transmitting progress updates

Utilizing SignalR to initiate lengthy computations on the server and notify the client when the results are ready. The input bindings consist of an HTTP request. Desire to send multiple messages to update the client on various stages of the process (e.g., ...

Struggles with z-index in pseudo elements

I'm facing an issue with positioning my pseudo element behind its parent element. I want the red box to appear in front of the blue box. #mobile-nav-icon { position: absolute; display: block; height: 92px; width: 93px; background-color: r ...

Why is the Mongoose ObjectID causing issues when used as a parameter in a function?

Attempted passing a Mongoose ObjectID to a function using an onclick(). Below is the shortened code snippet: <a onclick="Like({{_id}}, {{likes}}, {{dislikes}});" class="btn btn-like"></a> <p id="{{_id}}"> {{likes}} likes </p> < ...

The screen object is unable to perform the 'updateMatrixWorld' method. An error has occurred

I have been attempting to generate a sun, but every time I test run this code, I encounter an error: THREE.CanvasRenderer 54 three.min.js:262 102 Uncaught TypeError: Object #<Screen> has no method 'updateMatrixWorld' three.min.js:126 192 U ...

What methods does Angular2 use to differentiate between Light DOM and Shadow DOM within component views?

Currently, I'm engrossed in an intriguing article that delves into the concepts of host and visibility. In particular, it sheds light on the significance of the viewProviders metadata property within the Component decorator: The article discusses h ...

What is the best way to retrieve the maximum date associated with a particular foreign key in SQL Server?

I'm currently developing a NodeJs application that involves a SQL Server database for storing data and running queries. However, I've encountered an issue with one specific query which I believe is due to my limited experience in SQL. The &apos ...

Content changing programmatically does not reset the scrollHeight

As I embark on the journey to expand my coding skills, I have decided to challenge myself by tackling some tasks without relying on jQuery. One particular challenge that I am currently facing involves a fixed contenteditable div. The goal is to adjust the ...

"Exploring the role property of the userdata in a mock JSON server: a step-by-step guide

This is a sample Json object { "UserData": [ { "name": "Alice", "password": "abc123", "role": "user" }, { "name": "Bob", & ...

Unable to retrieve form data through a POST request

After submitting the form data, I encountered an issue where 'req.file' and 'req.body.description' on the backend were returning 'undefined'. However, when I logged just 'req.body', the following was displayed: ---- ...

The CSS styles are not immediately applied when the window is resized; they are only applied when scrolling

When utilizing the Angular approach to apply CSS, I noticed that changes are not applied when resizing the window. The canvas height adjusts correctly upon resize, but the table height only updates when we scroll the window. Is there a way to set the canva ...

Tips for aligning nav-items in a Bootstrap 4 navbar: center one and right align another

I'm struggling with the code snippet below: <div class="container-fluid big-logo bg-light" id="big-logo"> <nav class="navbar nav-pills flex-column justify-content-center flex-sm-row navbar-expand-lg navbar-light b ...

Placing text on top of an image in HTML

I am currently working on creating a responsive grid using HTML and CSS. My goal is to have the text 'Top left' displayed within the image, similar to the example shown at https://www.w3schools.com/howto/howto_css_image_text.asp. However, I am fa ...