How can I change link color and hover color in Bootstrap version 4?

前端 未结 9 1181
南笙
南笙 2021-01-11 14:33

In my design, I want to change my link and hover color in a specific part. I try my best but I can\'t do that. I am new in bootstrap. How can I change it for Bootstr

9条回答
  •  隐瞒了意图╮
    2021-01-11 15:20

    Add this to your CSS:

    a.nav-link {color:#FFFFFF;} !important
    a.nav-link:hover {color:#F00F00; text-decoration:none;} !important
    

    Don't include the important tags at first though, see if there are any conflicts before adding them in. I personally prefer to just do a search & find of the relevant classes and parent divs to clear any conflicts or change the class name I'm using.

提交回复
热议问题