Having a grid system in bootstrap v4 like this:
<div class="container-fluid">
<div class="row">
<div class="col-sm-auto align-self-center">
<img src="test" class="logo img-responsive">
</div>
<div class="col-sm-auto align-self-center">
<table class="table-responsive">
<tbody>
<tr><td></td></tr>
</tbody>
</table>
</div>
</div>
</div>
The desired layout should have the image and table side-by-side for screens larger than 'small' size, and stack them for smaller screens. The current setup accomplishes this effectively.
However, I am facing an issue with alignment. I want the row to be left justified when the columns are side-by-side (screen > "small"), but centered when stacked (screen < "small").
I attempted to use justify-content-center on the row, but it ends up centering both configurations instead of just one. This creates a problem where all elements are left-justified until the screen reaches extra small, at which point they once again shift to left justification...
A demo illustrating the issue can be found here: https://jsfiddle.net/aq9Laaew/133123/