on the sidebar nav, i want the link to have a solid white background and black text when that page is being viewed… then to another page and that link has a solid white background and black text when being viewed etc
i thought .active in my CSS would do that, cannot makeit work that way
again, i want the link to have a solid white background and black text when that page is being viewed… then to another page and that link has a solid white background and black text when being viewed etc
right now i get no color black for the text on the active page
Right now you are targeting and styling the container the link is inside, but the selector that is setting the color for the sidebar links has higher specificity.
You can be more specific in the selector.
.sidenav .active a {
color: black;
}
Also, you need to be mindful about what styles get inherited and which do not. Sometimes it is better to style the element directly and not its parent container. For example in your case, the parent has the background color and the element has the color so styling it like that makes more sense and is easier to reason about (instead of having to look for inherited styles).