Bootstrap 4 - Center List

前端 未结 4 1844
萌比男神i
萌比男神i 2021-02-19 11:49

I am building an app with the Bootstrap 4 beta. This app is really basic at the moment and has a single inline list. I\'m trying to center this list horizontally in the middle o

4条回答
  •  臣服心动
    2021-02-19 12:06

    You need to use the class text-center which actually centers the block in the screen using the text-align property within bootstrap css.

    • Item 1
    • Item 2
    • Item 3
    • Item 4
    • Item 5

    Hope this helps.

提交回复
热议问题