I am looking to design a div layout with 4 columns, but I want the content centered when the screen is in xs mode. Below is the code snippet I have used:
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="row">
<div class="container">
<div class="col-xs-6 col-xs-offset-3 col-sm-3 col-md-3">
<img src="http://placehold.it/200x200" class="img-responsive" />
</div>
<div class="col-xs-6 col-xs-offset-3 col-sm-3 col-md-3">
<img src="http://placehold.it/200x200" class="img-responsive" />
</div>
<div class="col-xs-6 col-xs-offset-3 col-sm-3 col-md-3">
<img src="http://placehold.it/200x200" class="img-responsive" />
</div>
<div class="col-xs-6 col-xs-offset-3 col-sm-3 col-md-3">
<img src="http://placehold.it/200x200" class="img-responsive" />
</div>
</div>
</div>
However, in the default view, it displays xs-6 resulting in only 2 columns instead of 4 as expected with md-3 setup. I'm unsure why this discrepancy is occurring.