Even though this topic has been discussed extensively, I still haven't found a solution that works for me. My goal is simple - to change the color of the links in my bootstrap navbar to white. I know that the CSS is correctly applied because I can adjust the font size, but changing the color seems to be a challenge.
nav .navbar-nav li{
color: white !important;
font-size: 25px;
}
<nav class="navbar navbar-expand-lg navbar-light fixed-top sticky-top">
<%= link_to root_path, class: 'navbar-brand' do %>
<span class="fa fa-home" aria-hidden="true"> Bartlett Containers LLC</span> <% end %>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav">
<li class="nav-item">
<%=link_to 'Pricing', pricing_path, class: 'nav-link' %>
</li>
<li class="nav-item">
<%=link_to 'FAQ', faq_path, class: 'nav-link' %>
</li>
<li class="nav-item">
<%=link_to 'Contact', contact_path, class: 'nav-link' %>
</li>
</ul>
</div>
</nav>