How can I achieve 1 row with 12 cells on a large screen in Bootstrap, and for a smaller screen have 2 rows with 6 cells?
Here is a visual representation of what I am trying to accomplish:
https://i.stack.imgur.com/NgfaP.png
This is the code I attempted:
<div class="col-xs-1 "><br/></div>
<div class="col-lg-1 col-xs-2">
<h1>1</h1>
</div>
... (code continues)
However, instead of the desired layout, I ended up with this:
https://i.stack.imgur.com/zrfvX.png
I'm puzzled by why these two cells are stacked:
<div class="col-xs-1 hidden-lg "><br/></div>
<div class="col-xs-1 hidden-lg "><br/></div>
I cannot figure out the reason behind it.
Please refer to this Fiddle for a correct implementation: Fiddle OK
When some cells contain '0', everything works fine. However, if I try to remove '0' to create empty cells, it fails: Fiddle FAIL