Struggling to change the color of my Bootstrap's nav-link to white with no success. Here is my code snippet:
<nav class="navbar navbar-light" style="background-color: #5E9DFE;">
<a class="navbar-brand" href="/"><span class="yellow">Div</span><span class="plate">Aid</span> <span class="salmon">T</span><span class="green">asks</span></a>
<button aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation" class="navbar-toggler" data-target="#navbar" data-toggle="collapse" type="button">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbar">
{% if session.user_id %}
<ul class="navbar-nav mr-auto mt-2" id="add-del">
<li class="nav-item"><a class="nav-link" href="/add">Agregar</a></li>
<li class="nav-item"><a class="nav-link" href="/delete">Eliminar</a></li>
</ul>
<ul class="navbar-nav ml-auto mt-2">
<li class="nav-item"><a class="nav-link" href="/logout">Cerrar sesión</a></li>
</ul>
{% else %}
<ul class="navbar-nav mr-auto mt-2" id="log-reg">
<li class="nav-item"><a class="nav-link" href="/register">Registro</a></li>
<li class="nav-item"><a class="nav-link" href="/login">Iniciar Sesión</a></li>
</ul>
{% endif %}
</div>
</nav>
After reviewing previous responses and CSS Specificity Documentation, I attempted to make changes:
nav .navbar-nav mr-auto mt-2 .nav-item .navlink{
color: #ffffff;
}
nav .navbar-nav mr-auto mt-2 .nav-item .navlink:hover{
color: #e8e8e8;
}
However, something still seems amiss. Grateful for any assistance.