How can I override Bootstrap CSS styles?

前端 未结 12 1352
囚心锁ツ
囚心锁ツ 2020-11-22 05:35

I need to modify bootstrap.css to fit my website. I feel it\'s better to create a separate custom.css file instead of modifying bootstrap.css

12条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 06:04

    Give ID to legend and apply css. Like add id hello to legend() the css is as follw:

    #legend  legend {
      display: block;
      width: 100%;
      padding: 0;
      margin-bottom: 20px;
      font-size: 21px;
      line-height: inherit;
      color: #333333;
      border: 0;
      border-bottom: 1px solid #e5e5e5;
    }
    

提交回复
热议问题