I have a web page that's using bootstrap 4.5
I'm struggling to add an alert above the fixed-top navbar. The alert is at the moment sitting on top of the navbar hiding half of it.
How can I keep the navbar top-fixed and yet have an alert above it?
My alert code is very simple:
<div th:fragment="covid-alert" class="covid-alert alert alert-info alert-dismissible fade show" role="alert">
...some text...
<button type="button" class="close" data-dismiss="alert">×</button>
</div>
and the navbar is simply:
<nav id="main-navbar" th:fragment="navbar" class="navbar navbar-expand-lg navbar-dark fixed-top">
...
</nav>
question from:
https://stackoverflow.com/questions/65904713/top-fixed-navbar-with-alert-above-it 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…