Highlighting Active Navigation Links in CSS


Style the currently active link in a navigation menu to provide visual context.

Source Code

.nav-link.active {
    color: #007bff;
    font-weight: bold;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments