How can i add a 2nd floating label to the right input field? the problem now is that the 2nd label overlaps the first label in the 1st input field:
<div class="form-floating input-group">
<input type="text" name="" class="form-control delete-from-date" value="" />
<label for="floatingDateToDelete">startdate</label>
<span class="input-group-text">till</span>
<input type="text" name="" class="form-control delete-till-date" value="" />
<label for="floatingDateToDelete">Enddate</label>
<button type="submit" class="btn btn-danger delete-multiple-events" name="submit">Delete</button>
</div>
here is a fiddle you can see the issue: http://jsfiddle.net/1uf0zv2d/6/
The floating label "Enddate" should occur in the right input field
Each
input+labelcombo needs to be within its own.form-floatingclass. Having multiple inputs in the same div was causing that issue. Also, a placeholder is required on each input field.I've moved the entire combo into a container that has
.input-groupon it. You can look at the changes here.