Bootstrap 4 align navbar items to the right

后端 未结 21 2665
無奈伤痛
無奈伤痛 2020-11-21 06:14

How do I align a navbar item to right?

I want to have the login and register to the right. But everything I try does not seem to work.

This is wha

21条回答
  •  -上瘾入骨i
    2020-11-21 06:54

    On Bootstrap 4

    If you want to align brand to your left and all the navbar-items to right, change the default mr-auto to ml-auto

提交回复
热议问题