hide nth child

by ian_smithz

HTML

<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
</ul>

CSS

ul li:nth-of-type(n+4) {display: none;} /* should match your case */