JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr>
<td>1.</td>
<td><label for="name">name:</label></td>
<td><input id="name" name="name" type="text"></td>
</tr>
<tr>
<td>2.</td>
<td><label for="phone">phone:</label></td>
<td><input id="phone" name="phone" type="text"></td>
</tr>
</table>
CSS
body {
background-color: #D0DDEB;
padding: 10px;
}
table {
border-collapse: separate;
border-spacing: 0 8px;
}
input {
background-color: transparent;
border: 0 none;
}
td {
background-color: #F5F8FB;
padding: 5px;
text-align: right;
position: relative;
}
tr:hover td {
-moz-box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.8);
-webkit-box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.8);
box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.8);
}
tr:hover td:first-child {
-moz-box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.8);
-webkit-box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.8);
box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.8);
}
tr:hover td:last-child {
-moz-box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.8);
-webkit-box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.8);
box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.8);
}
tr:hover td:after {
content: "";
width: 3px;
height: 100%;
background-color: #F5F8FB;
position: absolute;
right: 0;
top: 0;
z-index: 1;
}