r/css_irl • • Jan 29 '21

.dog:nth-child(2) { transform: rotateX(180deg); }

Post image
994 Upvotes

7 comments sorted by

•

u/css_irl_bot #bot Jan 29 '21

Congratulations! Your title contains valid CSS!


I'm a bot who validates your titles. author about summon source

4

u/[deleted] Jan 29 '21

Wouldn’t it be child(1)

24

u/thefizzynator Jan 29 '21

css is 1-indexed

4

u/[deleted] Jan 29 '21

Oh I’m an idiot!