JSFiddle - React, Tailwind, and code Playground
HTML
<fieldset id="fs1">
<label>Name</label><input type="text" /><br />
<label>Username</label><input type="text" />
</fieldset>
<hr />
<fieldset>
<label>Password</label><input type="text" /><br />
<label>Confirm Password</label><input type="text" />
</fieldset>
<hr />
<span style="color: #808080">Fixed with table:</span>
<fieldset>
<table>
<tr>
<td><label>Password</label></td>
<td><input type="text" /></td>
</tr>
<tr>
<td><label>Confirm Password</label></td>
<td><input type="text" /></td>
</tr>
</table>
</fieldset>
CSS
label
{
display: block;
float: left;
min-width: 100px;
}
input[type="text"]
{
margin-bottom: 5px;
margin-left: 5px
}