Use Selector Combinations to Optionally Display Elements

InstructorJhey Tompkins

Share this video with your friends

Send Tweet

We can use selector combinations with the general sibling combinator to optionally show/hide elements using CSS. In this example, we look at detecting winning combinations for a Tic Tac Toe board.