Navigation Dropdowns are Displaying in the Background of Content

Let me start by saying that I have used the SPA method as well as an include method to solve this issue. Both provide me with the same bad results.

The issue presents at the md viewport. I am using the class: navbar-expand-md meaning that at any viewport =< md the collapsed menu goes into effect. At viewport lg and up everything appears normal. Attached is my illustration.

Viewports >= lg

Viewports <=md

Here is the code:

This script is currently being used as an include. Any suggestions on how to show dropdowns on top of the text, instead of behind, would be appreciated. Thank you in advance.

Can you please provide a link to your page, where we can inspect your page? It’s not really clear from the screenshots what is your page structure and styling applied.