While I am using bootstrap 4 to build a top nav, this question is not necessarily specific to bootstrap. The challenge I am facing involves controlling the wrapping behavior of components in the top nav as the screen width changes.
I am struggling with achieving a non-default wrapping behavior that I have in mind, and I am uncertain if it is even possible or how to go about it.
In a wide screen view, it should look like this:
https://i.sstatic.net/E9ma1.png
Components A and B are left aligned, while C, D, and E are right aligned.
As the screen narrows slightly, it should appear as follows:
https://i.sstatic.net/E7RrI.png
Further narrowing should result in this layout:
https://i.sstatic.net/z13f4.png
And when narrowed more:
https://i.sstatic.net/PoINK.png
I am unsure how to achieve the desired wrapping order and justification. I have attempted grouping various components together with divs but nothing seems to work correctly.