There are a number of questions for partially collapsing Bootstrap navbars, e.g.:
Item1 Item2 Item3 Item4 Item5
Can be collapsed to:
Item1 Item2 Item3 =menu=
Or:
=menu= Item3 Item4 Item5
And so on. That works by having two navbars where one collapses and one does not.
But I want to collapse a single navbar where the items to hide are not at the edges:
Item1 Item3 Item5 =menu=
Can that be done with Bootstrap 5?