Bootstrap 4 align elements right inside a col div

前端 未结 3 1634
暖寄归人
暖寄归人 2020-12-16 15:35

My question is pretty simple but I don\'t find a proper way (I mean not use absolute positionning of sub elements inside a relative position container) to achieve this in Bo

3条回答
  •  佛祖请我去吃肉
    2020-12-16 16:28

    There a couple of issues with the markup provided that makes the layout look odd. @ZimSystem menioned the .container-fluid but also that you should always have a div.col inside a .row so that you get the same kind of padding on the edges.

    You don't need a

    around the buttons. To get the alignment simply add .ml-auto to the first button like this:

    Applications portfolio

    Just a simple reference block to see the 100% width

提交回复
热议问题