I do not plan much and I have found a certain situation.
I have a series of paragraphs inside a div. I would like to apply a CSS style to all the paragraphs from a certain position , for example, from the third paragraph the rest will not appear, that is, the following code:
<div class="prueba">
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
</div>
show only:
lorem ipsum
lorem ipsum
lorem ipsum
Note: The number of paragraphs is indeterminate, so I can not do something like:
p:nth-of-type(4),
p:nth-of-type(5) {
display: none;
}