I'm working on creating a file upload style using bootstrap. The code below is functional, but I'm facing an issue where the label Choose file
appears below the input field rather than in the middle. How can I adjust the positioning of Choose file
to be centered within the input field? For reference, please see the image linked below-
https://i.sstatic.net/cJCr0.png
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroupFileAddon01">Upload</span>
</div>
<div class="custom-file">
<input type="file" class="custom-file-input" id="inputGroupFile01" aria-describedby="inputGroupFileAddon01">
<label class="custom-file-label" for="inputGroupFile01">Choose file</label>
</div>
</div>