Bootstrap center heading

后端 未结 5 1118
后悔当初
后悔当初 2020-12-13 05:26

It is my first Twitter Bootstrap experience. I have added some headings (h1, h2, etc.) and they are aligned by left side. What is the right way to center headings?

5条回答
  •  别那么骄傲
    2020-12-13 05:49

    .text-left {
      text-align: left;
    }
    
    .text-right {
      text-align: right;
    }
    
    .text-center {
      text-align: center;
    }
    

    bootstrap has added three css classes for text align.

提交回复
热议问题