I am trying to create some form elements and vertically align the inputs within the columns. I tried using vertical-align:middle;
and margin:auto 0;
but neither seem to work.
input {
vertical-align:middle;
margin:auto 0;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="row">
<div class="col-sm-9">
<div class="form-group">
<div class="row">
<label for="phonenum" class="col-sm-2">Enter your phone number</label>
<div class="col-sm-10">
<input type="text" name="phonenum" />
</div>
</div>
</div>
</div>
</div>
</div>