Bootstrap - Change direction of the navbar

Roman picture Roman · Dec 24, 2012 · Viewed 33.2k times · Source

I've using Twitter bootstrap and trying to align the navbars' text to the right, i.e - that the "brand" will appear on the right, and all else to the left of it. (For right-to-left website).

Any ideas how this can be accomplished?

Answer

Rajarshi picture Rajarshi · Dec 26, 2012

pull-right and pull-left are default bootstrap classes that can help you achieve that without having to write your own css. For example,

    <div class="navbar pull-right"></div> [equivalent to float:right]
    <div class="navbar pull-left"></div>  [equivalent to float:left]