How do I horizontally center a table in Bootstrap

后端 未结 4 2129
深忆病人
深忆病人 2021-02-11 17:53

This my code. What I\'m trying to do is to get this table at the center of the container. But instead, it aligns to the left by default when I use the "container" clas

4条回答
  •  爱一瞬间的悲伤
    2021-02-11 18:31

    Using this Bootstrap row/column combination works regardless of the size of your table or screen, no CSS necessary:

    ....table stuff....

提交回复
热议问题