I have 2 divs, the first div should adapt the height to the content, and the second div should be the height of the remainder. The second div should scroll to show all elements. This is a template.
here is my example JSFiddle link
I don't want javascript, only CSS
<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>
source
share