HTML card experiencing overlapping problem

I have a website with three columns using Bootstrap that contain images, each with a button in the center. I added a dialog window that should appear when a user clicks on a button within an image. However, the dialog window appears behind the columns and images. I need help fixing this so the dialog displays over the contents of the whole page. Can anyone assist me in resolving this issue? Below are the code snippets I've included:

<html>
<head>
<!-- Meta tags and CSS/JS links -->
</head>
<body>
<div class="container">
    <div class="box">
        <a class="button" href="#popup1">Let me Pop up</a>
    </div>

    <div id="popup1" class="overlay">
        <div class="popup">
            <h2>Here i am</h2>
            <a class="close" href="#">&times;</a>
            <div class="content">
                Thank to pop me out of that button, but now I'm done so you can close this window.
            </div>
        </div>
    </div>
      
    <div class="row">
        <!-- Column 1 -->
           <div class="col-sm-4">
             <div class="card">
               <div class="hvrbox">
                 <img class = "img" src="img/7aam.jpg" alt="Mountains" class="hvrbox-layer_bottom">
                   <div class="hvrbox-layer_top">
                     <div class="hvrbox-text">
                         <a href="vido.html"><span class="button fa fa-play fa-2x"></span></a>
                         <div>surya, shruti hasan</div>
                    </div>
                 </div>
               </div>
           </div>
         </div> 
         <!-- Add more columns here --> 
      </div>  
</div>    

</body>
</html>

Dialogue.css

<!-- CSS for the dialog box styling -->

Hover.css

<!-- CSS for hover effects on images -->

Preview on Plunker

Answer №1

The issue you are facing is related to the z-index. To resolve it, simply increase the value for the .overlay as shown below:

.overlay {
    z-index: 999;
}

You can view the solution in action on this JSfiddle link.

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

Bootstrap slider aligned to the right side

I'm currently utilizing bootstrap 3 for my website. However, I encountered an issue with the slider when viewing the page on a mobile device as the image was displaying outside the viewport, shifted to the right. Additionally, in Firefox, the slider ...

Whenever I try to execute the ajax request for signing up or logging in, it fails to work as expected

While working on a project that follows the MVC pattern, I encountered an issue with sign up and login forms. To break down the process, it involves three parts: 1- frontend (HTML, CSS, JavaScript), 2 - server-side (PHP), and 3 - database (MySQL). The prob ...

Despite declaring a default export, the code does not include one

Software decays over time. After making a small modification to a GitHub project that was three years old, the rebuild failed due to automatic security patches. I managed to fix everything except for an issue with a default import. The specific error mess ...

Update picture using Vanilla Javascript for mobile display

I am looking to change my logo color to white when viewed on mobile devices. Currently, I have the following code for changing the logo on scroll using vanilla JavaScript. The code toggles between a dark and light logo based on the scroll position. Howev ...

The popup image on my main project is not functioning correctly, despite working perfectly in my test project

I am working on creating a pop-up image for my internship project. When the user clicks on an image, I want it to display in a larger size with a background and opacity. However, the code I have implemented so far is not functioning properly. Please ignore ...

Import information from a MySQL table into a single input field

I am currently working on a project that involves retrieving data from a MySQL database and displaying it in a single field. Below is the MySQL code I am using: My goal is to load all the data from $row['db_numbers']; into the field. <input t ...

The Protractor element appears to be detached from the page's document

Currently, I am facing a challenge while using protractor in my Angular6 Project. The issue revolves around clicking elements within the project. Situation: Within a table row, there is a list of elements that I need to click on individually. Challenge: ...

What steps do I need to take to create a calendar with this appearance?

I am working on my college project website and I would like to display a calendar similar to this. How can I achieve this using CSS and JavaScript? I want the user to be able to hover over a date to see all dates of the month, as well as have options to se ...

Utilizing JSON data within Highcharts

I am currently using a column high chart to display some data. I am making an AJAX call to return JSON data. [{"department":"DESIGNING","Present":8,"Total":44},{"department":"SEO","Present":0,"Total":1},{"department":"COORDINATION","Present":1,"Total":2}] ...

What is causing the inability to successfully copy and paste Vega editor specs locally?

I successfully executed this spec in Vega Editor: { "$schema": "https://vega.github.io/schema/vega/v3.0.json", "width": 1, "height": 1, "padding": "auto", "data": [ { "name": "source", "values": [ {"name": "Moyenne","vo ...

Having trouble with Fancybox Loading On Page Start function not working properly in Internet Explorer?

My website has a Fancybox that is supposed to load as soon as the page loads. It works perfectly in Firefox, but unfortunately it does not work in Internet Explorer and I am unsure why. There are no errors displayed in IE when the page loads, it simply doe ...

What is causing this JSON to malfunction in Internet Explorer?

Everything is functioning well on Chrome and other browsers except for IE. Below is an example to illustrate: (specifically referring to IE 8, unsure about compatibility with IE 9) Upon running the JSON request, I encountered an error stating "Object exp ...

Alter the properties based on the size of the window

I am working with React-Spring and I need to adjust the offset of a component when the window size changes. I attempted the following solution, but it is not functioning correctly and requires me to refresh the browser each time. <ParallaxLayer ...

Using the filter function in JavaScript to retrieve specific data

When the user_id from two different data sources matches, I need to return the email from the first source. The first source is a table in PostgreSQL called "results" and the second source is JSON data. I attempted this code snippet: var table = db.query ...

Showing code snippets with possible markup or malicious content as plain text strings

I am facing a challenge with a table on my webpage where values are added through a textbox in a popup modal. However, when I try to add the string ); to the textbox, it triggers a popup instead of being displayed innocuously in its original format on the ...

How can you determine the checked status of a dynamically generated checkbox?

I am facing an issue with a table that has 16 rows, each containing a checkbox. I need to determine whether the checkbox is checked or not. If it is checked, then I need to perform one action, otherwise another action needs to be taken. However, the logic ...

Using Vue to perform multiplication on data table entries

Is there a way I can use Vue.js to multiply values in a table? The values provided are for 100g of the product. For example, if I input 200g, I would like the values to double: 318kcal, 12 fat, 48 carbs, 8 protein, and 2% iron. Similarly, inputting 50g sho ...

Maximizing performance: optimizing Javascript usage in .net Web Application

After completing a web application using C#, ASP, and some javascript, my main page is cluttered with a mix of javascript/jQuery at the bottom. I have several ajax calls to web methods in this mess. Is there a way to organize this javascript into multipl ...

How can I customize the configuration for react-mui-draft-wysiwyg?

I am currently using an HTML editor called Material UI: import MUIEditor, { MUIEditorState } from "react-mui-draft-wysiwyg"; <MUIEditor editorState={formElement.editorState} onChange={formElement.onChange} /> I am trying to cus ...

What is the reason that the 400 status code consistently causes the enter catch block to execute when using axios?

In the frontend of my website, there is a contact form with three fields -> name, email, message. These fields are then sent to the backend using Axios. If a user fails to fill out any of the required fields, they should see a message saying "please f ...