Home > Software engineering >  Navbar Menu toggle button does not come on extreme right when collapsed
Navbar Menu toggle button does not come on extreme right when collapsed

Time:12-28

I have tried a lot but the navbar menu toggle button comes in middle when collapsed however it moves to extreme right when i expand it. How can it stay on extreme right even when it is collapsed.

'''html

Logo Menu Menu image 1image 2 i use bootstrap 5

CodePudding user response:

Please share your css or do a {margin-left: auto} on the 'Menu'

CodePudding user response:

You can align the text right in many ways.

  1. Use max-width: 100px; and set margin-left: auto;
  2. text-align: right;
  3. float: right;

Hope, it helps.

  • Related