I'm just starting to learn Bootstrap and I'm running into a problem trying to vertically align some text. I'm displaying a modal window from a partial view and in the header of the window, trying to display an icon and a title:
here's the page content:
<div id="actionConfirmation" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="actionModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div id="partialViewContent"> </div>
</div>
</div>
</div>
and the code in the partial view:
<div class="modal-header">
<div class="row">
<div class="col-md-2">
<i class="fa fa-exclamation-triangle fa-2x mx-auto" style="color:red" aria-hidden="true"></i>
</div>
<div class="col-md-10">
<h5 class="modal-title align-middle" id="actionModalLabel">Confirm Denial</h5>
</div>
</div>
</div>
I'm trying to get "Confirm Denial" to align in the middle of the row but at present, it's bottom justified with the exclamation icon. Feel like this should be easy but can't get it to work.