JSFiddle - React, Tailwind, and code Playground
by csornmo
HTML
<p>1</p>
<p>2</p>
<p>3</p>
<p>4</p>
<p>4</p>
<p>4</p>
<p>4</p>
<p>4</p>
<p>4</p>
<p>4</p>
<p>4</p>
<p>4</p>
CSS
p:nth-of-type(-n-1) {
display: none;
}
by csornmo
<p>1</p>
<p>2</p>
<p>3</p>
<p>4</p>
<p>4</p>
<p>4</p>
<p>4</p>
<p>4</p>
<p>4</p>
<p>4</p>
<p>4</p>
<p>4</p>
p:nth-of-type(-n-1) {
display: none;
}