JSFiddle - React, Tailwind, and code Playground

by LinkinTED

HTML

<div class="rowElem noborder">
    <label>Customer ID:</label>
    <div class="formRight240">
        <span class="field_required">
            <input type="text" name="p_cust_id_c" id="req" class="validate[required,maxSize[30]]"/>
        </span>
    </div>
    <div class="fix"></div>
</div>

CSS

.formRight240 { 
    float: left;
    width: 240px;
    margin: 5px 12px 5px 0px;
}
.field_required input {
    display: inline;
    color: red;
} 
.field_required:after{ 
    content: "*";
}