JSFiddle - React, Tailwind, and code Playground

HTML

<table style="position: absolute;">
    <tr class="test-row">
        <td>Name1</td>
        <td class="test-cell">
            <input type="text" value='test1'/></td>
    </tr>
    <tr class="test-row">
        <td>Name2Name2</td>
        <td class="test-cell"><input type="text" value='test2test2'/></td>
    </tr>
</table>

CSS

table
{
    border-collapse:collapse;
}

td
{
    border: 1px Solid gray;
    height: 120px;
    position: relative;
    width: 100px;
}

.test-row 
{
    background-color: red;
}

.test-cell div, .test-cell input
{
    display: block;
    position: absolute;
    height:auto;
    width: auto;
    top:0;
    left:0;
    bottom:0;
    right:0;
    background-color: green;
}