Using a State Variable to Add Unread States to the Channel Nav

InstructorSam Selikoff

Share this video with your friends

Send Tweet

Learn how to use a simple variable to improve the readability of our code when styling more than two states. Add an unread indicator to the new inactive and unread state. Use the active prefix to style the channel links for the active CSS pseudostate.

The code for this lesson is divided into two sections, with this you can see the progress on the code.

  1. Begin
  2. End