I am encountering an issue where a label extends beyond a certain length and ends up being placed under other elements.
Check out the image for reference: form input
I would like the entire label text to be visible. I believe the col-md-1 class from bootstrap is causing this problem. While this size works well for most entries and displays text on multiple lines when there are spaces, it fails to handle long single words, causing the text to spill over under the input field.
Below is the code snippet:
<div class="form-group filaCertificado">
<form:label class="control-label col-md-1 nameCertificate" for="certs" path="certs">Cert Name</form:label>
<div class="col-md-4">
<input id="file" name="file" class="form-control inputCert" readonly="readonly" />
</div>
<label for="upload${status.count}" class="btnCert">
<span class="btn btn-primary btnCert" aria-hidden="true">upload</s:message></span>
<input type="file" id="upload" name="upload" style="display:none">
</label>
<button type="button" id="btnRepo" class="btn btn-primary btnCert">Repository</button>
</div>
In this scenario, how can I ensure that the entire label text is visible? Should I consider using JavaScript to dynamically check the size and adjust the CSS accordingly?
Thank you!