I am facing an issue on my web page where I have a navigation bar always at the bottom of the page. However, I also have another
<div style="display: block;" id="detail">
that currently hides the navigation bar. I want both divs to be visible and aligned properly. Can anyone guide me on how to position the <div style="display: block;" id="detail">
exactly on top of the navigation bar?
To clarify, here is the link to the jsfiddle with just the navigation bar:https://jsfiddle.net/4mwdkr3p/
And here is the link to the jsfiddle with both div elements (where the navigation bar becomes invisible):https://jsfiddle.net/aq13uwua/2/
[CSS Code Here]
[HTML Code Here]
Edit(detail): I am developing a web app for iOS where I need a persistent navigation bar at the bottom of each page. The detail div contains buttons for playing videos and audio, as well as an image button for adding the current video to favorites. When this favorite button is clicked, its image changes via JavaScript to indicate that it has been added to favorites. However, the issue is that this favorite image button overlaps and hides the navigation bar below it. My goal is to position the favorite button above the navigation bar so that both are visible simultaneously.