I am new to bootstrap and the concept of responsive design.
I read the download documents and followed some w3schools tutorials. All references to col- must = 12 in the same row class. They also mention that you can combine different col classes and example sizes <div class="col-md-3 col-xs-6">
What I am not getting is when you have to break the viewport with the class </row> when you combine different col sizes ?
Consider the following, where I want the mobile device to display 2 rows and 2 columns, and on the desktop one column with 4 rows
<div class="container"> <div class="row"> <div class="col-md-3 col-xs-6"> </div> <div class="col-md-3 col-xs-6"> </div> <div class="col-md-3 col-xs-6"> </div> <div class="col-md-3 col-xs-6"> </div> </div> </div>
Given all the columns inside rows must = 12, should the row class be closed at different points for mobile and desktop computers ...?
How would I solve this problem, I hope the question makes sense.
thanks
html css html5 twitter-bootstrap responsive-design
Timothy coetzee
source share