I have set of columns I'm adding dynamically (could be 2, could be up to 5). I want these to stack vertically on small screens (.col-sm-12
) but display horizontally on medium and up screens.
However, if I do something like the below the columns still all inherit col-sm-12
.
<div class="row">
<div class="col col-sm-12">content</div>
<div class="col col-sm-12">content</div>
<div class="col col-sm-12">content</div>
<div class="col col-sm-12">content</div>
</div>
Is there a way to do this so the columns are 100% width on small, but flex on other screen sizes?