As @PiLHA suggested, it seems bootstrap's 3 grid system does not support 1 column spans in screens with a width less than approximately 360px. The issue comes from the fixed padding of 15px
that is added on each side to each column.
Now some math to explain the issue:
A one column span .col-xs-1
has a defined width of: 8.333333333333332%;
(that's 100/12)
In a screen of 320px like the iPhone's that's roughly equal to 27px;
but the combined padding is forcing its width to 30px
. Those extra pixels are the ones causing the <div>
to break to the next line.
So an easy fix would be to just decrease the padding in that column size:
.col-xs-1 {
padding-left: 5px;
padding-right: 5px;
}
Or you could also decide to use col-xs-10
and col-xs-2
in your markup
That being said, you should take a note on what @SeanRyan posted in his answer and fix your markup, I was going to post something similar but I believe his answer is well laid out and there's no need to repeat the same pointers.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…