Can't change nav-bar link's color in Bootstrap 4

前端 未结 1 921
青春惊慌失措
青春惊慌失措 2021-01-26 16:06

I am trying to change nav bar\'s one link\'s color while I tried all ways it still has a default color. Here is the code:

  • 相关标签:
    1条回答
    • 2021-01-26 16:37

      Your anchor has .nav-link class, your .nav-item has the custom .signup class. Where did you come up the structure of .nav-link li a.signup?

      Try this:

      .navbar-light .navbar-nav .nav-item.signup .nav-link {
          color:#fff;
      }
      
      0 讨论(0)
    提交回复
    热议问题