Experiencing issues with my website navigation malfunctioning on specific iOS devices

After testing my project today, I discovered that the mobile navigation on my website is not displaying its list items on certain iOS devices. The navigation worked fine on an iPhone 5 and iPad Mini, but failed to show the list items on an iPhone 4 and older iPad. Could this be due to outdated iOS versions or devices?

I'm unsure how to debug this issue without access to the inspect element tool on a desktop. I've reviewed my code and cannot find any apparent problems.

If anyone is willing to test this on an older iOS device, it would be greatly appreciated. Below are some snippets of relevant code related to the bug. Please excuse any messy code, as this is one of my first larger projects.

Here is the full navigation code (the issue seems to occur only when expanding the hamburger menu):

<header>
    <a href="#" title="logo" class="logo">
        <img src="<?=$prefix?>images/logo.svg" alt="logo">
    </a>
    
    <nav class="floatfix nav">
        <div id="hamburgerknop"> 
            <a href="#" title="mobile logo" class="mobile-logo">
                <img src="<?=$prefix?>images/logo.svg" alt="logo">
            </a>
            <span id="hamburger" class="fa fa-bars"></span>
        </div> 
        <ul class="main-nav">
            <li><a href="<?=$prefix?>index.php" title="Home">Home</a></li>
            <li><a href="<?=$prefix?>over-ons/over-ons.php" title="Over Ons">Over Ons</a></li>
            <li><a href="<?=$prefix?>producten/producten.php" title="Producten">Producten</a></li>
            <li><a href="<?=$prefix?>workshops/workshops.php" title="Workshops">Workshops</a></li>
            <li><a href="<?=$prefix?>klanten/klanten.php" title="Klanten">Klanten</a></li>
            <li><a href="<?=$prefix?>contact/contact.php" title="Contact">Contact</a></li>
        </ul>

        <ul class="icon-nav">
            <li><a href="https://www.facebook.com/" class="icon icon-mono facebook" target="_blank" title="Facebook"><span class="fa fa-facebook"></span></a></li>
            <li><a href="https://twitter.com/?lang=nl" class="icon icon-mono twitter" target="_blank" title="Twitter"><span class="fa fa-twitter"></span></a></li>
            <li><a href="https://plus.google.com" class="icon icon-mono googleplus" target="_blank" title="Google Plus"><span class="fa fa-google-plus"></span></a></li>
            <li><a href="https://www.instagram.com/" class="icon icon-mono instagram" target="_blank" title="Instagram"><span class="fa fa-instagram" target=_"blank"></span></a></li>
        </ul>
        
        <?php if(isset($_SESSION["fldEmail"])){ ?>
            <a href="<?=$prefix?>logout.php" class="logout" title="Logout"><span class="fa fa-lock"></span>Logout</a> 
            <?php if(isset($_SESSION["admin"])) { ?>
                <a href="<?=$prefix?>admin/admin.php" class="admingo" tile="Admin"><span class="fa fa-lock"></span>Admin</a> 
            <?php } else {}}
            else { ?> 
                <a href="<?=$prefix?>klanten/klanten.php" class="logout" title="Login"><span class="fa fa-unlock-alt"></span>Login</a> 
            <?php }
        ?>

    </nav>
</header>

Below are some key CSS lines:

 header { 
    /*background-color: rgba(255,255,255,0.5);*/
    position: fixed;
    left: 0;
    height: 120px;
    top: 0;
    width: 100%;
    z-index: 10;
    display: block;
}

.logo {
    z-index: 12;
    position: absolute;
    left: 50px;
    top: 0;
    display: block;;
    width: 150px;
    padding-top: 10px;
}

.nav {
    z-index: 11;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center;
}

.non-transparent
{
    z-index: 11;
    background-color: rgb(31,15,16) !important; 
}

...

Answer №1

Kindly utilize the following code snippet:

.non-transparent {
    background-color: #1f0f10 !important;
    max-height: 100%;
    overflow: auto;
    z-index: 11;
}

Alternatively

.non-transparent
{
  z-index: 11;
   background-color: rgb(31,15,16) !important; 
}

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

Creating a layout with two distinct columns and varying rows using Bootstrap

Recently delving into the world of Bootstrap, I encountered a challenge when attempting to replicate an old design created using tables. Here is the design: https://i.sstatic.net/byoTu.png Unfortunately, my Bootstrap skills are not quite up to par in ach ...

As soon as I hover over my icon to enlarge it, I notice that my entire page starts to

Whenever I hover over my icon, the font size increases causing the div to expand slightly and move the page. This doesn't look great. How can I prevent the div from resizing when hovering over the icon? Here's my code: <div className="bg- ...

What is preventing the container slide from reacting solely to the image?

I've been working on an image and a slider, and everything seems to be functioning as intended. However, there is a strange reaction on the left side even before reaching the image. I've tried tweaking it, but I can't seem to figure out the ...

Is there a way to instruct the code to select between two variables and align their values?

I have encountered a challenge while working on a unit test. The website I am testing is dynamic, causing the CSS Selector and xpath to frequently change. As a solution, I came up with the idea of using both CSS and xpath to retrieve the same text. Curren ...

Is the action button located in a different class?

I am working on a class that creates a navigation bar with buttons: NavigationBar.m + (void)styleNavBar :(UIView*) view withColor:(UIColor*)color { // 1. Hide the existing nav bar //[self.navigationController setNavigationBarHidden:YES animated:NO]; // 2 ...

Is there a way to deactivate the spin buttons for an input number field?

Is there a way to create an input element with type number in Vue using createElement() in TypeScript and then disable the spin buttons for increment and decrement? I attempted to use the following CSS: input[type=number]::-webkit-inner-spin-button, input ...

Toggle the visibility of an element with a single button click

Below is a snippet of my sample code: SAMPLE HTML CODE: <ul> <li class="item"> item 1 </li> <li class="item"> item 1 </li> <li class="item"> item 1 </li> <li class="item"> item 1 </li> <l ...

In JavaScript, a prompt is used to request the user to input a CSS property. If the input is incorrect,

Implement a while loop that continuously prompts the user to enter a color. If the color entered matches a CSS property such as blue, red, or #000000: The background will change accordingly, but if the user enters an incorrect color, a message will be dis ...

Table list collapse

I have a list of processes where each row contains a link labeled "Collapse". When this link is clicked, I want it to open a container area where I can add additional content. Here is what I have tried so far: https://i.sstatic.net/mcq2u.png However, th ...

The HTML grid is causing an irritating excess space on the right side of my website

After brainstorming an idea, I decided to create this website for testing purposes. However, the grid layout seems to be causing an unwanted margin on the right side of the page that is not associated with any HTML tag, disrupting the zoom functionality. ...

Stop the endless scrolling of the carousel and keep it fixed in place

I'm having trouble with disabling auto scrolling even though I've set bs-interval to "false". Here's my code snippet: <link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfem ...

Positioning two images alongside text

I am trying to position two images at the top of my website so that they align correctly with the text next to them. However, I've encountered a few challenges: 1) The text doesn't have any spacing between the images. 2) The text varies in le ...

Guide to Embedding a SQL Table into an HTML Table

I need to set up a table within my current webpage to showcase a list of movies along with their genres. Welcome to my Movies page. The index.php file contains all the necessary database credentials and establishes the connection. <?php session_start( ...

How can the default text color be adjusted in NSAttributedString when initialized with HTML dark mode?

During the process of converting my existing app to dark mode, I came across an instance where I needed to initialize a UITextView with an NSAttributedString for displaying some legal text from the app store. While everything looked good in light mode, swi ...

Javascript on-page scroll positioning

My current dilemma involves finding a solution to optimize in-page scrolling for mobile users. I have a sticky header on the page, which causes #section1 to place the scroll position behind the sticky header. Is there a way to adjust the scroll position b ...

The CSS elements are positioned beneath the top border when applying a scale transformation within columns

I have a layout with 4 columns of images that I want to scale on mouse hover using the 'column-count' property. The first column works correctly, but the next three end up positioned under the upper border during the transformation. I've e ...

Is it possible to transform the Bootstrap5 sidebar, currently positioned above the block content, into a sticky element on

After creating a Django blog using bootstrap5 and following guidance from the python crash-course book, I encountered an issue with my sidebar placement. Despite trying various methods, I struggled to "override" my blocks in order to keep my sidebar fixed ...

Learn how to conditionally disable an input element in Angular using simple steps!

My task involves creating a grid of input elements by using a numeric array named board. I need to selectively disable specific elements based on their values. Whenever board[i][j] contains a non-zero value, the corresponding input element should start off ...

Tips for smoothly transitioning an ActivityIndicator's appearance in a Swift application

Take a look at my activity indicator setup: let loadingIndicator = UIActivityIndicatorView(style: .whiteLarge) loadingIndicator.center = view.center view.addSubview(loadingIndicator) To kick things off, I use loadingIndicator.startAnimating(), and to sto ...

Can a CSS gradient be layered on top of another element?

Curious about the technique that enables creating gradients OVER another div (a fading white horizontal line). Here is what I envision it to look like: Currently, this is what I have (I know, it needs work): The horizontal line is a basic with a color C ...