I am currently working on a form group that includes a label, a captcha image, and an input field for the captcha code. My goal is to have the label positioned at the top of the form group, with the captcha image and input field aligned in one line. I have successfully achieved the first part but am struggling with the second.
Here is the HTML code I have:
<div class="form-group has-error">
<label for="captcha">Verification Code</label>
<div class="input-group">
<?php echo $captcha; ?>
<input type="text" class="form-control" id="captcha" maxlength="4" name="captcha" placeholder="Verification Code">
</div>
<span class="help-block"><?php echo form_error('captcha'); ?></span>
</div>
Image:
Could anyone provide guidance on how I can achieve this?