The html popup background on mobile devices is blending into the background, causing an overlap issue

I have implemented a popup for the menu section on the home page. As you scroll down, you can access the menu section right below the reservation button. The popup functions perfectly on desktop devices. However, when I try to open the same page on a mobile device and click on the menu, the popup ends up overlapping with the background.

I've been trying to pinpoint the issue but haven't had any luck so far. On desktop, everything works seamlessly, and that's the experience I want to replicate on mobile devices as well.

Here is the URL:

Below is the CSS code snippet I utilized to create the modal:

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: #000;
}
.modal-content {
    background-color: #000 !important;
    color: #d4d2d2 !important;
    border: 1px solid #451d22!important;
    padding: 0 20px;
    overflow-y: scroll;
    overflow-x: hidden;
    height: 560px;
    overflow: auto;
    background-color: #000;
    border-radius: 0px !important;
}

Answer №1

To apply a higher z-index value, incorporate the z-index:99999; attribute within your styling for the CSS class .modal

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

Developing a webpage that navigates seamlessly without the hassle of constantly refreshing with

I am in the process of creating a website that is designed to run everything within the same file, but I am unsure about how to locate study materials for this project. For example: In a typical website scenario -> If I am on index.php and I click on ...

Show the dropdown menu (bootstrap-ui-datetime-picker) outside of the md-dialog box

Utilizing md-dialog for presenting a form. The form includes md-input-container which showcases input tags and select tags. The final container displays https://github.com/Gillardo/bootstrap-ui-datetime-picker <md-input-container class="md-block" flex ...

Eliminate the lower boundary of a divisional table

I'm having an issue with displaying images in a div table. Each image has a border at the bottom, which is around 2-5 pixels wide. Unfortunately, as a new user, I am unable to send any images. My main goal is to remove this unwanted border from the ...

Creating dynamic HTML pages by rendering image files using moustache, enlive, and the Clojure programming language

While using moustache,a micro framework for wiring Ring handlers and middlewares, along with enlive as the HTML template engine and Clojure, I am facing an issue where the images in my HTML file are not being displayed. Can anyone provide guidance on how ...

Calculate the total price from a combination of HTML and JavaScript options without altering the values

I'm currently facing an issue in my form where the final price needs to be updated when a different option is selected. I've searched extensively for the problem without success. I've used similar code before, just with different variables a ...

Tips for adjusting the search bar's position on a mobile device when it is activated by the user

I need help with an open source project where I am developing a search engine using Angular. When using smaller screen sizes, the search bar is positioned in the middle but gets hidden behind the keyboard terminal when clicked on. Can anyone advise on ho ...

Currently, I am experiencing difficulties with two specific aspects of the website I am working on - the hamburger menu and the slideshow feature

I'm having trouble with the menu on my website. It's not functioning as expected - the dropdown feature isn't working, and two items are not staying in the correct position under the parent ul despite attempts to position them using CSS. Add ...

Updates made to the Transform property in Mui Theme are not appearing in the browser

I'm looking to modify the MuiInputLabel.outlined. While I can see various changes when inspecting in the browser, I'm having trouble seeing the transform property change specifically. This is the current configuration of my MuiInputLabel: MuiInp ...

Is your Node.js EventLoop operation stuck in limbo?

This pertains to a Node/Express/MongoDB application, involving an AJAX call Previously, the selector.html() event was updating the html content of the selector, but now it is not. The only modification made was the addition of an editAll() function in ...

Changing the identification of elements

I noticed that when I open object X and Y, they have the same fields, tabs, and checkboxes. However, I am confused as to why the IDs of the checkboxes and other elements are different. Can you explain what gwt-uid(number) means? Please take a look at the a ...

Arranging elements within a card using CSS

I'm currently facing a dilemma regarding the arrangement of elements within the card. My goal is to have the items inside the "top-right-element" class positioned in the top right corner, while the button featuring the pi-chevron-up icon should be pla ...

What is the best way to incorporate Javascript and Jquery into a Rails 4.2.4 application running on Ruby 2.2.3?

Currently, I am working on an app using Ruby on Rails with the specified versions of Rails and Ruby. My main goal is to integrate JavaScript/ jQuery into my mindmap index views in order to dynamically add information to the page without requiring a full p ...

Troubleshooting Issue: Ionic 3 and Angular ngForm not transmitting data

Attempting to create a basic crud app with ionic 3, I am encountering an issue where new data cannot be inserted into the database. The problem seems to lie in the PHP server receiving an empty post array. Below is my Ionic/Angular code: Insert.html < ...

How can I create more space on a responsive webpage when minimizing the screen using CSS?

On this particular html page, <div class="mySlides" *ngIf="index == currentIndex"> <div *ngIf="hr"> <div class="slide-container slide-half" data-aos="fade-down" [innerHTML]=" ...

Failure to respond to dual part form by RemoveClass

Currently, I am utilizing jQuery to visually control a form. The issue arises when trying to remove classes from the first part of the form using removeClass. While this works initially, upon clicking the button to advance to the second part of the form, t ...

Utilizing regular expressions in Powershell to modify a CSS file

Snippet from my current theme.css file: .actionBlock[selected] { color: var(--gray11); background-color: var(--gray11); } I am trying to modify color: var(--gray11); to color: #FFF; /* UPDATED : var(--gray11) */ After attempting in Po ...

How come the styles in my CSS file aren't being applied to my images based on their class or ID?

When I apply a className or id to my img tag in my JavaScript (using React.js) and then add a style that references that id or class, the style does not get applied. However, when I do the same for a div, everything works perfectly fine. <--JavaScript- ...

Angular 6 - implementing a dynamic carousel with bootstrap styling

I am currently working on a carousel using bootstrap4 where the images are sourced from an array. However, I am facing an issue where the first element must have the active class. <div id="carouselExampleFade" class="carousel slide carousel-fade" dat ...

My CSS is stubbornly refusing to reload, despite my efforts to provide a unique link for each loading

Greetings fellow web developers! As a newbie in the field, I recently launched my very own WordPress site. Exciting as it is, I encountered some challenges while trying to make last-minute modifications to the stylesheet. Despite ensuring that the changes ...

Issues with alignment in Bootstrap CSS

I have Bootstrap downloaded and the following code snippet. <header id="top"> <div class="container"> <div class="row"> <div class="col-sm-3 "> <image alt="here will be th ...