When using Twitter bootstrap in two columns of 12 columns wide, when viewed on an xs device, they are displayed on the same line:
<label for="contact" class="col-sm-3 control-label">Preferred Contact Method:</label> <label for="telephone" class="col-sm-2 control-label"> <small><em>Telephone</em></small> </label>
When viewed on a small mobile device, the columns should expand effectively to col-xs-12 ; however, both positions are shown next to each other, suggesting that this is not so. What is even more curious is that another element, such as col-sm-2 , appears on the next line.
The above problem and proper functionality can be achieved by wrapping either <label> in <div> . I got the impression that the col-* class can be used for any element; however, perhaps I misunderstood this, since applying it to <label> does not produce the expected results, i.e. <label> does not expand to fill row unless it happens after / after <div> .
Is my understanding wrong or something else in the game?
source share