To solve the issue, adjust the z-index of the .header-row
element since it is positioned relatively and its z-index takes precedence.
Current CSS for header-row:
.header-row {
position: relative;
z-index: 2;
}
Update to:
.header-row {
position: relative;
z-index: 2000;
}
An alternative approach is to switch the .header-row to position:static
, then modify the z-index of the #main-nav
element:
.header-row {
position: static;
z-index: 2;
}
#main-nav {
border: none;
border-radius: 0;
position: relative;
z-index: 2000;
width: 100%;
}
Edit: To clarify further, the navigation overlaps the content due to lack of z-index set for the <div id="content">
and its children. Any element with a defined z-index will be displayed in front of the content.
With a z-index of 2 for header-row, the nav displays in front of the content.
The complication arises from testimonial-slides having dynamic z-index values between 90 and 100. Since they lack a parent with specified z-index and relative position, their z-index compares against the header-row's z-index (set at 2).
Another solution could involve setting the z-index of <div id="content">
to 1.