Is there a way to make a Bootstrap 4 Navbar only partially collapse?
I want certain items on the Navbar aligned to the right to always be visible, while the rest of the Navbar items on the left will collapse into a menu when viewed on mobile devices.
The issue I'm facing is that when the menu expands, the collapsed elements appear before the fixed menu, but I prefer them to appear below for better aesthetics.
To see a working example, click here: http://jsfiddle.net/sfm70xLe/
Here is how I want it to look when expanded:
https://i.sstatic.net/rYXnC.png
This is the desired outcome when accessing the collapsed items:
https://i.sstatic.net/WsRV5.png
I have tried adjusting the element placement and experimenting with float-right
and float-left
, but these changes have not been effective so far. I am not sure how to proceed without making significant modifications to the Bootstrap framework. Any suggestions?