My navigation code looks like this:
#banner {
display: flex;
justify-content: center;
align-items: center;
z-index: 99999;
}
.element {
margin-right: 2em;
color: #534728;
width: 100px;
}
#logo {
height: 125px;
width: auto;
}
<div id="banner" class="banner-header">
<a class="element" href="/">Home</a>
<a class="element" href="/shop/">Shop</a>
<a class="element" href="/our-story/">Our Story</a>
<img id="logo" class="element" src="http://www.jamaicacannabisestates.com/wp-content/uploads/2018/03/new-logo.png" />
<a class="element" href="/products/">Products</a>
<a class="element" href="/contact-us/">Contact Us</a>
<a class="element" href="/foundation/">Foundation</a>
</div>
https://jsfiddle.net/v0uuak2u/2/
I am currently trying to add another element below the navigation, overlapping the logo as shown in the attached image:
https://i.sstatic.net/leLKu.png
I have attempted adjusting the z-index of elements but it seems challenging due to parent-child z-index relationships. Here is what I have tried:
https://jsfiddle.net/6w8nbjvq/10/
If you have any suggestions on how to resolve this issue, please let me know.