There is a usual list of ul, I want to learn how to scroll from the list, say, of 10 digits, only 4 are displayed, and the rest only if scrolled down will be displayed. I read about overflow: scroll - but somehow I asked and it turns out nonsense. Tell me how to do it or where to read about scrolling methods, I will be grateful.
.for-ul { list-style-type: none; border: 1px solid red; } li {} a {} <ul class="for-ul"> <li><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li><a href="#">6</a></li> <li><a href="#">7</a></li> <li><a href="#">8</a></li> <li><a href="#">9</a></li> <li><a href="#">10</a></li> </ul>