JSFiddle - React, Tailwind, and code Playground
by darkylmnx
HTML
<div>
<p>toto 1</p>
<p>toto 2</p>
<p>toto 3</p>
<p>toto 4</p>
<p>toto 2</p>
<p>toto 3</p>
<p>toto 4</p>
</div>
CSS
/* p:nth-child(1),
p:nth-child(2),
p:nth-child(3) {
color: red;
}
*/
/* p {
color: red;
}
p:last-child {
color: initial;
} */
p:not(:last-child) {
color: red;
}