Bootstrap 4 - Center List

前端 未结 4 1849
萌比男神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 11:59

    Use display:flex for ul because justify-content-center works with flexbox

    ul {
      display:flex;
    }
    
    
    • Item 1
    • Item 2
    • Item 3
    • Item 4
    • Item 5

提交回复
热议问题