I'm currently working on a website that features a centered navbar with a logo also centered inside it. The tech I'm using is Bootstrap and LESS.
Issue
When the navbar collapses on mobile/tablet view, the menu items are displayed horizontally instead of vertically, which doesn't look good.
In mobile/tablet view, the logo appears inside the toggle menu when you click on the 3 bars, making the design even worse.
While the toggle menu opens on clicking in mobile view, it doesn't close when you click on it again.
My attempted solution
I attempted to use a media query to display list items as "inline-block" for devices under 752px, but it didn't work as expected.
For the logo, I tried using the "visible-lg" class to make it visible only on large screens. It appeared on the right instead of the center, and CSS didn't help align it properly.
I've been researching for days for a fix to have a centered logo inside a centered navbar, with no success. Any assistance or suggestions would be highly appreciated.
Here is the HTML for the navbar:
<!-- Your HTML code here -->
CSS:
/* Your CSS code here */