JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<thead>
<tr>
<td>Problem freferfgegergergfe</td>
<td>Solution</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
CSS
table {
background-color: #aaa;
}
tbody {
background-color: #ddd;
height: 100px;
overflow: auto;
}
td {
padding: 3px 10px;
}
thead > tr, tbody{
display:block;}
JavaScript
$(function() {
for (var i = 0; i < 20; i++) {
var a = Math.floor(10 * Math.random());
var b = Math.floor(10 * Math.random());
var row = $("<tr>").append($("<td>").html(a + " + " + b + " ="))
.append($("<td>").html(a + b));
$("tbody").append(row);
}
});