Zebra-Striped List (HTML & CSS)

Learn how to create a Zebra-Striped List, using the :nth-child() CSS pseudo-class selector, which allows us to target elements based on their index/position in a group of siblings. Creating striped lists, with alternating background colors, helps us differentiate list items, making them more distinguishable, and the :nth-child() CSS selector makes this task very simple! In this video, we discuss in detail how to use the :nth-child() selector and we then use it to create striped lists! Enjoy 😊 Don’t for
Back to Top