I have been experimenting with the bootstrap 4 grid system in an attempt to center a single column. In bootstrap 3, I used to achieve this with:
<div class="col-md-10 col-md-offset-2">
</div>
However, in bootstrap 4, using the new offset class "offset-md-2" does not produce the same result.
To center a col-md-5 element, I resorted to a workaround that involves including empty columns, which doesn't feel quite right:
<div class="row">
<div class="col"></div>
<div class="col-md-5 align-self-center">
<img src="img/myimage.gif" style="width: 100%;">
</div>
<div class="col"></div>
</div>