JSFiddle - React, Tailwind, and code Playground
by Luiz Vargas
HTML
<div><table>
<tr><td class="headcol">9</td>
<td class="long">QWERTYUIOPASDFGHJKLZXCVBNM</td></tr>
</table></div>
CSS
body { font:16px Arial;}
table { border-collapse: separate; border-top: 1px solid navy; }
td {
margin:0;
border:2px solid navy;
border-top-width:0px;
white-space:nowrap;
}
div {
width: auto;
overflow-x:scroll;
margin-right:5em;
overflow-y:visible;
padding-bottom:1px;
}
.headcol {
position:absolute;
width:5em;
right:0;
top:auto;
border-right: 0px none blue;
border-top-width:3px; /*only relevant for first row*/
margin-top:-3px; /*compensate for top border*/
}
.headcol:after{content: 'Row ';}
.long { background:blue; letter-spacing:1em; }