how to select nth element in css code example Example: select odd child css li:nth-child(odd) { /* Selects only odd elements */ color: green; }