I am trying to have 12 columns, which would take up 1 column each on a large screen, and 4 columns each on a small screen. But when I try to minimize it, nothing happens, they just get pushed one underneath another. I wanted to have 3 columns in one row on small screens, but that doesn't happen and I am wondering what I am doing wrong here. Can you please help me out without adding negative reputation to the post? Thank you!
Here's the code:
<div class="container">
<div class="row">
<div class="col-lg-1 col-xs-4 bg-warning">Warning</div>
<div class="col-lg-1 col-xs-4 bg-info">Info</div>
<div class="col-lg-1 col-xs-4 bg-danger">Cancel</div>
<div class="col-lg-1 col-xs-4 bg-success">Yes</div>
<div class="col-lg-1 col-xs-4 bg-warning">Warning</div>
<div class="col-lg-1 col-xs-4 bg-info">Info</div>
<div class="col-lg-1 col-xs-4 bg-danger">Cancel</div>
<div class="col-lg-1 col-xs-4 bg-success">Yes</div>
<div class="col-lg-1 col-xs-4 bg-warning">Warning</div>
<div class="col-lg-1 col-xs-4 bg-info">Info</div>
<div class="col-lg-1 col-xs-4 bg-danger">Cancel</div>
<div class="col-lg-1 col-xs-4 bg-success">Yes</div>
</div>
</div>