Your card needs to have a particular height if you want to achieve trello like feature.
Then for the header and footer content also give it a some desired height.
For the inner content which you want to scroll should be of 100% height of parent minus (height of header + height of footer). For that you can use calc.
.ss{
height: 150px; /* Give the main container a desired height */
width: 150px; /* and a width if you want */
border: 1px solid #ddd;
}
p.header, p.footer{
/* header on top and footer on bottom should have a fixed height
so put the desired height */
margin: 0;
height: 30px;
background: #eee;
}
.scroll{
/* now the center part should be height of container minus height of
header and footer combined */
padding: 10px;
height: calc(100% - 60px);
overflow-y: auto; /* add overflow on y-axis so it add the scroll bar */
}
<div class="ss">
<p class='header'>Header</p>
<div class="scroll">
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
<p>sfddsfds</p>
</div>
<p class='footer'>Footer</p>
</div>