My navigation bar's drop-down menu vanishes behind the header

I am trying to create a drop-down menu similar to this:

https://i.sstatic.net/7uTuy.png

However, my current menu looks like this:

I am using the ha-header navbar from Tympanus: http://tympanus.net/Development/HeaderEffects/

.dropdown {
  display: inline-block;
  position: relative;
  z-index: 9999999;
}
.dropdown-content {
  display: none;
  position: absolute;
}
.dropdown-content a {
  display: block;
}
.dropdown-content a:hover,
.dropdown-content a:focus {
  background-image: none;
}
.dropdown-content a:last-child a:hover,
.dropdown-content a:focus {
  background-image: none;
}
.dropdown-content a:first-child a:hover,
.dropdown-content a:focus {
  background-image: none;
}
.dropdown-content a {
  width: 210px;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.parallax-header {
  /* The image used / background-image: url("header.jpg"); / Create the parallax scrolling effect */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  width: 100%;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  position: relative;
}
<div class="dropdown">
  <a href="#">legal solutions</a>
  <div class="dropdown-content">
    <a href="#">Link 1</a>
    <a href="#">Link 2</a>
    <a href="#">Link 3</a>
  </div>
</div>

If you need more context, you can visit my site here: www.valaw.gigfa.com

Answer №1

Your issue has been identified, and the solution is to eliminate the use of overflow:hidden in your CSS.

.ha-header-perspective > div {
    backface-visibility: hidden;
    background: #fff none repeat scroll 0 0;
    height: 50%;
    margin: 0 auto;
    overflow: hidden; /* remove this overflow hidden */
    position: relative;
    text-align: justify;
    transition: all 0.5s ease 0s;
    width: 100%;
 }

Answer №2

In the .ha-header-front element, the property overflow: hidden is set.

To fix this issue, add the following code to your CSS file:

.ha-header-front {
   overflow: visible !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 an HTML table using a PHP array is a straightforward process that allows for

Is there a way to create an HTML table using a PHP Array? Below is the PHP code: function get_location_list() { global $connect; $query = "select location , SUBSTRING_INDEX(SUBSTRING_INDEX(location,'-',1),'-&apo ...

Dimensions by the height of the content

In this particular div block, I have set a height as shown below: <div> <!-- content --> </div> Along with the following styles: div{ height:100px; } However, I am interested in dynamically adjusting the height of the div base ...

Tips for eliminating excess white space in mobile view using css/bootstrap

I have successfully replicated the screenshot below using CSS/Bootstrap to ensure it looks consistent on both mobile and desktop view. https://i.sstatic.net/NS4yE.png For the upper portion of the screen-shot, I have created a fiddle which includes a sear ...

How can I convert JSON data into an HTML table using Angular?

I am currently working on an Angular 6 project where I am dealing with a JSON object like the one below: My goal now is to display this data in an HTML table. Here is my code snippet: Interface interface Ilivelog { instID: string; procID: string; ...

Once the <a> element is clicked, ensure that the function finishes executing before attempting to click/process it again

Utilizing jQuery.get for AJAX requests, I trigger a server request when the user clicks on the <a> element. The response is then used to update the content within the <div id='aaa'>. However, if the user clicks on the <a> rapid ...

Preserve menu settings by utilizing local storage

I have been working on saving the state of my menu using localstorage. The jQuery code below is what I am currently using to toggle my menu: <nav id="sidebar" class="active"> <ul class="menu"> <li> <a href="#">Customer ...

The issue with the mobile display of the search navigation bar in Bootstrap 4

On PC, the search navigation bar with links appears to the right of the search bar. However, this layout is not working properly on Android or iPhone devices. I've tried solutions from different sources like using .navbar-header and enclosing the lin ...

Do the elements only find their rightful position when the window is interacted with?

I've encountered a strange issue with a button in my code that inserts HTML textareas onto the page. Initially, when the button is clicked, everything appears as expected. However, upon subsequent clicks, the textareas start to appear in random places ...

Incorporating a dynamic fill effect into an SVG pie chart

I am looking to animate a pie chart with a variable value that is unknown upon loading. Assuming I fetch the value promptly and convert it into a rounded percentage : var percentage = Math.round(sum * 100 / total); Next, I place this value here : <di ...

Tips for centering the second content within a div block

<div style="height: 100%; background: red"> <div style="height: 100px; background: green"> </div> <div style="background: blue;"> <h1>Content</h1> </div> </di ...

Having trouble getting PHP to display an image on the webpage

When attempting to output a simple image using PHP, I noticed that it only displayed a white square. This led me to believe that the IMG file could not be found. However, when I used a basic HTML IMG tag, the file was located without any issues. Even try ...

The CSS root variable is failing to have an impact on the HTML element's value

I'm in the process of changing the text color on home.html. I've defined the color property in a :root variable, but for some reason, it's not appearing correctly on the HTML page. Take a look at my code: home.scss :root { --prim-headclr : ...

How can an HTML form element identify which submit button has been clicked?

In my HTML form, I have included 2 buttons to meet the requirements of our customers. I am trying to determine how to identify which button was pressed on the backend. Below is a code snippet that demonstrates this: <form method="get"> < ...

The CSS overlay effect refuses to shut down

Greetings everyone, I'm new around here so please bear with me. I am encountering an issue wherein the overlay only works in one direction - it appears when the button is clicked, but nothing happens when attempting to close it. I have tried adjustin ...

Container will keep items from spreading out

Experiencing an issue with the card layout in my weather dashboard app. The cards within a container are not spreading out evenly to match the 100% width of the header. I want the container with the 5 cards to be the same width as the header and wrap prope ...

Enhance your website's visual appeal with Bootstrap's responsive image

I'm working with a code structure that features columns containing full-width images. <div class="col-3"> <img src="..." class="w-100" /> <div>Name</div> </div> Due to the variance in image sizes, there's n ...

Achieving a customized CSS ribbon that displays exclusively on specific images sourced from a Django database

I am currently utilizing the Django framework for my project. I have implemented a CSS that applies a ribbon to an image, but I only want this ribbon to appear on certain images stored in the database. Within the HTML file for displaying product details, I ...

Find the current location of the scroll bar on the view port

Currently, I am utilizing the Addazle React grid for my project. However, I need to incorporate endless scrolling functionality which is not already included in this grid system. Thus, I am tasked with devising my own solution for this issue. To successful ...

IIS Alert: Missing Images, CSS, and Scripts!

When I tried to publish my website using IIS, I encountered the error message Cannot read configuration file due to insufficient permissions. After attempting to add permissions for IIS_USRS and realizing that this user does not exist on my computer runnin ...

What is the best way to modify the colors of two specific elements using a combination of CSS and JavaScript

I am currently developing a browser-based game and have encountered an issue. Here is the relevant line of my HTML/PHP code: echo '<div id="div'.$n.'" class="d'.$rand.'" onclick="swapit(this.id, this.className)"></di ...