I am encountering an issue where my bootstrap columns are displaying as two on one row followed by a single column on the next row in the sm view port. In the xs view port, each column is stacked on top of each other.
Here is the HTML code:
<div class=" row">
<div class="sandwich-item col-sm-4 col-xs-6">
<h2>hello</h2>
</div>
<div class="sandwich-item col-sm-4 col-xs-6">
<h2>hello</h2>
</div>
<div class="sandwich-item col-sm-4 col-xs-6">
<h2>hello</h2>
</div>
</div>
And here is the CSS code:
.sandwich-item{
border: 2px solid #390000;
margin-right: 10px;
}
.sandwich-item h2 {
font-size: 18px;
font-weight: bold;
}
For small view port, click here.
And for extra-small view port, click here