Center Contents of Bootstrap row container

前端 未结 4 1041
说谎
说谎 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

    Try this, it works!

    hi 1!

    hi 2!

    hi 3!

    Then, in css define the width of center div and center in a document:

    .center {
        margin: 0 auto;
        width: 80%;
    }
    

提交回复
热议问题