Unable to float a twitter bootstrap navbar item right with either class=pull-right or float:right

前端 未结 6 462
礼貌的吻别
礼貌的吻别 2021-02-04 09:37

I am using Twitter bootstrap and Rails and I can\'t seem to float a navbar item to the right.

I tried using something like this:

  • 6条回答
    •  爱一瞬间的悲伤
      2021-02-04 10:19

      The code u have written is

       class="nav navbar-nav" col-12
      

      The above code can be replaced like this

      class="nav navbar-nav col-12" 
      

      and also at next insert

      class pull-right in your li button
      

    提交回复
    热议问题