How do I right align an element using twitter bootstrap?

前端 未结 3 1032
盖世英雄少女心
盖世英雄少女心 2021-02-05 01:16

I have 3 elements and I am trying to align the button to the right side of the screen, but am having trouble doing so.

3条回答
  •  梦毁少年i
    2021-02-05 02:17

    Utilise justify-content-end

    From the bootstrap documentation, it says:

    Bootstrap 3 used .navbar-left and .navbar-right for navbar alignment.

    Bootstrap 4 uses the various helper classes.

    (Alignment part) https://www.quackit.com/bootstrap/bootstrap_4/tutorial/bootstrap_navbars.cfm

    and here more info about the new alignment https://www.quackit.com/css/flexbox/tutorial/flexbox_alignment.cfm

    
    
    
    
    
    
    
    
    
    
    
    
      
      
    1
    2
    3

    https://plnkr.co/edit/LtfW2fj9f3E9Ehj1M8jN?p=catalogue

提交回复
热议问题