Skip to main content

Edit It: Apply DeepPink to every odd child that is a 'p' node

This code shows how to use the :nth-child() selector in CSS to apply DeepPink to every odd child that is a 'p' node.

See it on StackBlitz