JSFiddle - React, Tailwind, and code Playground

HTML

<table>
    <tr>
        <td>
            <input class="fit" type="text" value="foo" />
        </td>
        <td>
            <select class="fit"><option>bar</option></select>
        </td>
        <td>
            <textarea class="fit">d</textarea>
        </td>
        <td>
            <input  class="fit" type="text" value="foo" />
       </td>
    </tr>
<table>

CSS

.fit {
    background: red;
      
  
    width: 100%;
}

table {
    width: 100%;
}

td {
    padding-right: 50px;
    width: 25%;
    border: 1px solid;
}

JavaScript

/* cal() alternative */