Sprinkle a little if(), a style query, and some sibling-index() and we get a con...

@csstricks@mastodon.social

Sprinkle a little if(), a style query, and some sibling-index() and we get a conditional way to use :nth-child(), as @css shows us.

css-tricks.com/re-implementing