Currently, my CSS looks like this:
#navlist li #current
{
color: #000;
background: #FFFFFF;
border-bottom: 1px solid #FFFFFF;
}
I want to convert the id #current into a class so that I can dynamically assign it to the correct li element.
How do I rewrite the code above using .current while still targeting only the #navlist li elements and achieving the same styling?
I struggle with CSS and would appreciate some guidance on how to achieve this. (I've attempted different approaches without much success)