Is there a way to align this label to the right? Currently, it only aligns to the left. I tried overriding the default value in Bootstrap 4 from justify-content: center
to
justify-content: right !important;
, but it still remains on the left. What can I do to make it right-aligned?
<div class="modal-body">
<form class="form-horizontal">
<div class="form-inline">
<label class="col-md-4">Type</label>
<input class="col-md-8" type="email" class="form-control">
</div>
</form>
</div>
CSS:
div.form-inline label.col-md-4 {
justify-content: right !important;
}