I have a piece of html code, where everything is fine except for the position of the button. It's very far away from the container. This is my code below:
<div class="container-fluid mt-1 d-flex align-items-center justify-content-center" id="inp_field" style="background-color: rgb(127, 255, 202); padding: 5em 5em">
<div class="container" style="background-color: rgb(250, 214, 116); width:25em;">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="mySwitch" name="emp">
<label class="form-check-label" for="mySwitch"><b id="tag">EmpName</b></label>
</div>
<div class="form-floating mb-3 mt-3">
<input type="text" class="form-control" id="emp" data-bs-toggle="tooltip" title="You can toggle the above button to choose between empname and PF no :))" placeholder="Enter empname" onkeypress="return (event.charCode > 64 &&
event.charCode < 91) || (event.charCode > 96 && event.charCode < 123) || event.charCode==32" >
<label for="emp">Enter your name</label>
</div>
<label for="sel1" class="form-label"><b>Select period (YM - YM):</b></label>
<div id="period">
<select class="form-select" id="sel1" name="sel1" style="width: 7em;"></select>
<b>-</b>
<select class="form-select" id="sel2" name="sel2" style="width: 7em;" disabled></select>
</div>
<br>
<div class="form-check">
<input type="checkbox" id="checksupp" name="Check if supplementary bill is required" value="Check if supplementary bill is required">
<label class="form-check-label" for="checksupp">Check if supplementary bill is required</label>
</div>
</div>
<button class="btn btn-primary mt-4 ms-2 d-flex align-items-start justify-content-start" type="button" id="submit">Submit</button>
</div>
The button with the id submit is very far away from the container (the reference image is uploaded below). I am not able to fix this. Please help me.
