The placement of the image in the navigation bar is causing the links to be

Oddly enough, the links seem to be unclickable except when using Internet Explorer. I attempted adjusting the z-index and checked for conflicts multiple times, but unfortunately, it still won't cooperate. The issue seems to stem from the navigation bar, however, I am at a loss on how to resolve this.

The code is currently set as follows:

    /* Navbar BG Big */
.image {
    position: relative;
    margin-right: auto;
    margin-left: auto;
    height: auto;
    width: 100%; /* for IE 6 */
    background-image: url(../images/headerbg.png);
    background-repeat: repeat-x;
    text-align: center;
}

/* Navbar BG Small */
@media all and (max-width: 1200px) { 
.image {
    background-image: url(../images/spacer.gif);
} 
}

/* Logo Styles */
@media all and (max-width: 800px) { 
#big-logo {
    display: none;
    position: relative;
    z-index: -999;
}
}

@media all and (min-width: 800px) { 
#small-logo {
    display: none;
    position: relative;
    z-index: -998;
}
}

/* Small Nav */
@media all and (max-width: 900px) { 
nav ul {
    list-style-image: none;
    list-style-type: none;
    width: 100%;
    position: absolute;
    margin-bottom: 2em;
}

nav ul li {
    display: inline;
    text-align: center;
    margin-right: .5em;
    margin-left: .5em;
}
}

/* Big Nav */
@media all and (min-width: 900px) { 
nav ul {
    list-style-image: none;
    list-style-type: none;
    width: 100%;
    position: absolute;
    margin-bottom: 2em;
    margin-top: .4em;
}

nav ul li {
    display: inline;
    text-align: center;
    margin-right: 0.5em;
    margin-left: 0.5em;
}
}

.navtext:link, .navtext:visited {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1em;
    text-shadow: 1px 1px 1px #333;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.2em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-right: 2em;
    font-style: normal;
}  

.navtext:hover {
    color: #FFFFFF;
    text-shadow: 1px 1px 2px #00c4ff;
    text-decoration: none;
} 

HTML

    <!-- logo & nav !-->
<div class="image">

    <nav>
<ul>
    <li><a href="#" class="navtext">Home</a></li>
    <li><a href="#" class="navtext">About</a></li>
    <li><a href="#" class="navtext">Services</a></li>
    <li><a href="#" class="navtext">Portfolio</a></li>
    <li><a href="#" class="navtext">Product</a></li>
    <li><a href="#" class="navtext">Store</a></li>
    <li><a href="#" class="navtext">Support</a></li>
    <li><a href="#" class="navtext">Contact</a></li>        
</ul>
    <ul>
    <li>
<div id="spacer"></div>    
    <!-- big logo !-->
<img src="images/headerlogo.png" alt="ETV Software" id="big-logo" border="0"/>
    </li>
    </ul>
    </nav>

    <!-- navdrop image here !-->
<img src="images/navdrop.png"/>   

    <!-- small logo !--> 
<img src="images/headerlogo.png" alt="Etv Software" id="small-logo" border="0"/> 

</div>

JSFiddle of the above code

Answer №1

If you want a specific ul element to be on top, consider setting its z-index to 1 instead of using negative values.

http://jsfiddle.net/N62pd/2/

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

Unusual occurrence involving label span and the use of italic font styling

Currently following a Xamarin tutorial on creating a label view. You can check out the tutorial here. Encountered an issue where applying an italic font attribute to text within a span tag does not retain the text size set in the label tag. <StackLayo ...

Relentless underlining that feels like a trip to the

As a novice in web development, I am currently following a tutorial on creating a restaurant website. While I have encountered numerous obstacles along the way, most of them have been resolved successfully. However, I am facing an issue with my h1 element ...

Html flipcard malfunctioning and logo overlapping issue detected

Regarding the following code: <html> <style> .img { max-width: 100%; } .Headerstyle { color:Black; transition: transform .2s; text-align: center; margin-top: 80vh; } .Headerstyle:hover { transform: scale(1.5) ...

Load CSS stylesheet depending on Internet Explorer document mode

As I work on my website, I am facing the challenge of incorporating different versions of my style sheet based on the browser's document mode, not the browser mode. For instance, if the documentmode = ie8, I may need to load main_ie8.css, whereas for ...

Only one admin account can be accessed at a time by multiple logins

I am looking to add a new feature to my app where only one admin can log in at a time. If someone else tries to log in with the same admin ID on another device, a warning should be shown, indicating that the user is already logged in and cannot access the ...

storing information in HTML using Django

Recently, I have been learning about Django Rest and I am now trying to display some JSON data in HTML. The JSON data I have is: {'Resul': {'Period Start': '2017-01-01', 'Period End': '2017-12-12'}} When ...

Is it possible for Selenium to interact with buttons from the LightSwitch library?

Is it possible for Selenium to interact with LightSwitch buttons? In my initial attempt, I had to locate a button styled using LightSwitch in CSS. I used By.CSSSelector to find the button. However, upon locating the button, I realized that it was utilizin ...

Tips for integrating semantic HTML with React components

As a newcomer to react, I am eager to establish a strong foundation before delving deep into the language and risking having to backtrack later on. I am curious about how to incorporate semantic HTML in react. Elements such as <header>, <nav>, ...

Choosing specific Nth-of-type elements using selenium

Trying to use By.cssSelector to capture the nth dom element with class c3 in a structure similar to this: <div class="c1"> <div class="c2"> <div class="c3">...</div> </div> </di ...

When Hovering, Pseudo-class Cannot be Applied

In my design, I have an image overlaid with a Play icon. The concept is that when the user hovers over the image, the brightness of the image decreases and the Play icon is replaced with a Magnifying Glass icon. However, there seems to be a problem. When ...

Numerous lists conveniently consolidated within a single navigation bar

I am currently exploring the functionality of StumbleUpon's navigation bar by attempting to replicate it. My approach involves using 3 lists within 1, structured like this: <nav role="navigation"> <ul id="rightnav"> & ...

Cannot find property in type, and the parameter is implicitly of an unspecified type

I've been encountering this issue where I keep getting an error message. I attempted to resolve it by setting "noImplicitAny": false in tsconfig.json, but unfortunately that did not work. As for the 'Property does not exist on type' error, I ...

After clicking the 'add row' button, I successfully added a new row; however, the jQuery date

I encountered an issue with the datepicker when adding it to dynamically added rows. The datepicker was not functioning properly on the added rows, except for the first row where it worked perfectly. Strangely, removing the first row resulted in the datepi ...

Materialize CSS dropdown select arrow out of position

Here is a snapshot of the Materialize CSS, which can be viewed at: However, I am encountering an issue where the dropdown arrow appears below the list instead of on the side. I am currently using Django 3. How can I resolve this? https://i.sstatic.net/d ...

What is the best way to implement form fields that have varying validation patterns based on different conditions?

Currently, my focus is on developing a form that prompts the user to choose between "USA" or "International" via radio buttons. The input field for telephone numbers should then adapt its requirements based on the selected country - either a 10-digit US nu ...

Code behind implementing a new System.Drawing.Font

Recently, I have been attempting to generate an image using the Black Rose font in c# but unfortunately, the output does not reflect the desired font. Below is the code snippet I used for creating the image: protected void Page_Load(object sender, Eve ...

Updating displayed images in HTML using Python and Flask based on passed data

return render_template('homepage.html',imgName=filenameD) PYTHON <img src= {{ name }} alt="something" style="width:500px;height:600px;"> HTML I am attempting to dynamically change the image displayed on my website usi ...

What is the largest image dimension allowed for website use?

What are the dimensions in pixels and file size in MB? I've been curious about this for a while, appreciate any insights! ...

Visible images remain unloaded by Lazy Load

Currently, I am implementing lazyload functionality on my website to only load images that are visible. This is necessary because some content is hidden when viewed on smaller screens using display:none. The issue I am facing is that lazyload only starts ...

Can you provide instructions on how to display data in two lines within a mat-select field?

Is it possible to show selected options in mat-select with long strings in two lines within the same dropdown? Currently, the string appears incomplete. You can see an example of this issue here: incomplete string example <mat-form-field class="f ...