JSFiddle - React, Tailwind, and code Playground
by ddschmitz
HTML
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<br>
<br>
<div class="container">
<div class="form-group row">
<label for="dropdown" class="col-sm-4 col-form-label">Which option best describes your current role?</label>
<div class="input-group col-sm-8">
<div class="input-group-prepend">
<div class="input-group-text"><i class="fa fa-user"></i></div>
</div>
<select class="custom-select" id="dropdown">
<option value="" selected disabled hidden>Select an option</option>
<option value="Student">Student</option>
<option value="Full Time Job">Full Time Job</option>
<option value="Full Time Learner">Full Time Learner</option>
<option value="Prefer not to say">Prefer not to say</option>
<option value="Other">Other</option>
</select>
</div>
</div>
<div class="form-group row fix-label-group">
<label for="dropdown" class="col-sm-4 col-form-label">Which option best describes your current role?</label>
<div class="input-group col-sm-8">
<div class="input-group-prepend">
<div class="input-group-text fix-label-item"><i class="fa fa-user"></i></div>
</div>
<select class="custom-select" id="dropdown">
<option value="" selected disabled hidden>Select an option</option>
<option value="Student">Student</option>
<option value="Full Time Job">Full Time Job</option>
<option value="Full Time Learner">Full Time Learner</option>
<option value="Prefer not to say">Prefer not to say</option>
<option value="Other">Other</option>
</select>
</div>
</div>
</div>
CSS
.fix-label-group {
align-items: center;
}
.fix-label-item {
height: calc(2.25rem + 2px);
}