JSFiddle - React, Tailwind, and code Playground
by liquidmetalrob
HTML
<fieldset>
<legend>Payment Method</legend>
<input type="radio" name="payment_method" value="bill"/>
<label>Bill Me</label>
<input type="radio" name="payment_method" value="credit">
<label>Credit Card</label>
<input type="radio" name="payment_method" value="paypal"/>
<label>Paypal</label>
</fieldset>
CSS
#radio label {
float: right;
display: inline
}
radio {
display: inline;
}
#radio input {
width: auto;
margin-left: 3em;
}