I am facing an issue with my navigation bar on both desktop and mobile. When I maximize the window while the mobile navbar is open, it disappears as expected but the desktop navbar does not appear. I am using a bootstrap template and I am unsure if solving this problem requires JavaScript knowledge. If it does, I can provide more information. Below is my CSS code:
/**
* Desktop Navigation
*/
.navbar {
padding: 0;
}
.navbar ul {
margin: 0;
padding: 0;
display: flex;
list-style: none;
align-items: center;
}
.navbar li {
position: relative;
}
// Rest of the CSS code...
/**
* Mobile Navigation
*/
.navbar-mobile {
display: none;
}
.mobile-nav-toggle {
color: #fff;
font-size: 28px;
cursor: pointer;
display: none;
line-height: 0;
media (max-width: 991px) {
.mobile-nav-toggle {
display: block;
}
.navbar ul {
display: none;
}
// Rest of the CSS code...
And here is the HTML code:
<!-- ======= Header ======= -->
<header id="header" class="fixed-top ">
// HTML content...
</header><!-- End Header -->
https://i.sstatic.net/qTMYs.png