Two divs are needed in this layout, where the first div adjusts its height based on the content and the second div takes up the remaining space. The second div should be scrollable to display all items. Here is the design template: https://i.sstatic.net/MI07Y.png
For a demonstration, refer to my example on JSFiddle. Please note that only CSS is used, no JavaScript.
<div class="tbl">
<div class="header">
<p>1</p>
<p>2</p>
</div>
<div class="body">
<div class="in-body">
<p>3</p>
<p>4</p>
<p>5</p>
<p>6</p>
<p>7</p>
<p>8</p>
<p>9</p>
<p>10</p>
</div>
</div>
</div>