DEV Community

Cover image for How to use nth-child with Tailwind CSS.
Michael Andreuzza
Michael Andreuzza

Posted on

How to use nth-child with Tailwind CSS.

Tailwind CSS doesn’t include built-in utilities for nth-child, but that doesn’t mean you can’t use it effectively. In this quick guide, I’ll show you how to write nth-child styles in your Tailwind projects using custom classes and apply them to real layout patterns — like grids, card decks, and alternating rows.

Read the full article

.https://lexingtonthemes.com/blog/posts/tailwind-css-nth-child/

Top comments (0)