Center Contents of Bootstrap row container

前端 未结 4 1026
说谎
说谎 2020-12-24 04:41

I have the code below and I\'d like to center the \"well\" elements of the outer \"row\" div. I\'ve tried various approaches such as text-align: center (which just centers

4条回答
  •  春和景丽
    2020-12-24 05:25

    For Bootstrap 4, use the below code:

    Centered element

    Ref: https://getbootstrap.com/docs/4.0/utilities/spacing/#horizontal-centering

提交回复
热议问题