I am working within the W3.CSS framework and trying to center two Cards as seen in the following image.
When the viewport is large or medium sized, I would like the cards to sit adjacent to one another. On small viewports, I would like for them to stack one on top of the other. Anyway, try as I might, I just cannot achieve this layout. I am either able to get the cards to sit adjacent to one another, but they will not center within the row, or I get them to be centered, but they stack on top of each other regardless of the size of the viewport.
Here is some sample code as a starting point.
<div class="w3-row w3-padding w3-border w3-gray" style="margin:auto">
<div class="w3-card" style="width:35%;">
<p>w3-card</p>
</div>
<div class="w3-card" style="width:35%;">
<p>w3-card</p>
</div>
</div>
I have tried so many different approaches to achieve the desired structure using Grid, Layout and Display controls, but NOTHING has worked.
Thanks in advance for tips or a solution.