Skip to main content
deleted 45 characters in body
Source Link
lonix
  • 17.7k
  • 28
  • 114
  • 236

Partially collapsecollapsed Bootstrap navbar with hidden items not at edges

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=               <--- Item2 and Item4 collapsed

Can that be done with Bootstrap 5?

Partially collapse Bootstrap navbar with hidden items not at edges

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=               <--- Item2 and Item4 collapsed

Can that be done with Bootstrap 5?

Partially collapsed Bootstrap navbar with hidden items not at edges

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?

edited tags
Link
lonix
  • 17.7k
  • 28
  • 114
  • 236
added 2 characters in body
Source Link
m4n0
  • 31.6k
  • 27
  • 80
  • 92

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=               <--- Item2 and Item4 collapsed

Can that be done with BootrapBootstrap 5?

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=               <--- Item2 and Item4 collapsed

Can that be done with Bootrap 5?

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=               <--- Item2 and Item4 collapsed

Can that be done with Bootstrap 5?

Source Link
lonix
  • 17.7k
  • 28
  • 114
  • 236
Loading