Here is a preview of the current page layout.
Image showing misalignment of radio buttons and labels
This snippet shows the JSP code being utilized.
<div class="leftFormComp" style="width: 100%;">
<label class="inputLabel" for="ext-comp-1045">
<span class="required">*</span><fmt:message key="registration.agreement"/>
</label>
<div id="x-form-el-ext-comp-1045" class="x-form-element" style="padding-left: 8px;">
<div id="ext-comp-1045" class=" x-form-checklist" style="width: 344px; height: auto;">
<div class="x-form-cb-li x-form-cb-li-h" style="padding-bottom: 5px">
<input id="termsAgree-Y" class="x-form-field" type="radio" value="Y" name="termsAgree"> <label class="x-form-cb-label" for="termsAgree-Y"><fmt:message key="registration.yes"/></label>
</div>
<div class="x-form-cb-li x-form-cb-li-h">
<input id="termsAgree-N" class="x-form-field" type="radio" value="N" name="termsAgree"> <label class="x-form-cb-label" for="termsAgree-N"><fmt:message key="registration.no"/></label>
</div>
</div>
</div>
</div>
I have attempted to use inline styling such as
display: inline!important;
on both input and label tags but without success.
Upon inspecting in Chrome Developer Tools, I noticed an additional attribute affecting the radio buttons' appearance. However, I am unsure of its source.
element.style {
display: block;
}
Could someone recommend a method to override the existing styles on this element to align the radio buttons and their labels in one line? As a newcomer to front-end development, any assistance would be greatly appreciated. Additionally, help in identifying the origin of this unexpected styling (is it possible using Chrome Developer tools?)