Center Contents of Bootstrap row container

前端 未结 4 1030
说谎
说谎 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:43

    With Bootstrap 4, there is a css class specifically for this. The below will center row content:

    ...inner divs and content...

    See: https://v4-alpha.getbootstrap.com/layout/grid/#horizontal-alignment, for more information.

提交回复
热议问题