How to override Bootstrap's Panel heading background color?

后端 未结 11 1364
情书的邮戳
情书的邮戳 2021-01-31 08:08

I\'m using a Panel from Bootstrap however for the heading I want to use my own background color for the heading. When I don\'t put panel-heading class

11条回答
  •  太阳男子
    2021-01-31 08:36

    am assuming custom_class to be your class to override heading color of the panel. just add !important to it or add inline styles or a id and add styles as they will have more specificity over class added styles.

    • with !important

      .custom_class{ background-color: red !important; }

    • with !important

    • with ID :

      #custom_id{ background-color: red; }

    -with inline styles :

提交回复
热议问题