I'm attempting to position a <form:checkbox>
to the left of a <form:label>
using this code snippet:
<form:checkbox path="acceptTerms" id="acceptTerms"/>
<form:label path="acceptTerms">Accept Terms</form:label>
Despite my efforts with display:inline, float:left, and other methods, the layout appears like this:
After inspection, it seems that the HTML output is:
<input id="acceptTerms" name="acceptTerms" type="checkbox" value="true">
<input type="hidden" name="_acceptTerms" value="on">
<label for="acceptTerms">Accept Terms</label>
Any assistance would be greatly appreciated. Thank you.