How can I override Bootstrap CSS styles?

前端 未结 12 1287
囚心锁ツ
囚心锁ツ 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:29

    I found out that (bootstrap 4) putting your own CSS behind bootstrap.css and .js is the best solution.

    Find the item you want to change (inspect element) and use the exact same declaration then it will override.

    It took me some little time to figure this out.

提交回复
热议问题