css - Boostrap 3 - col-md-4 to col-sm-6, or grid of 3x2 to 2x3 -


how can change grid of 3x2 2x3 without having empty space 1 row ends , starts?

for example:

 <div class="row">       <div class="col-md-4 col-sm-6">         content     </div>     <div class="col-md-4 col-sm-6">         content     </div>     <div class="col-md-4 col-sm-6">         content     </div> </div> <div class="row">      <div class="col-md-4 col-sm-6">         content     </div>     <div class="col-md-4 col-sm-6">         content     </div>     <div class="col-md-4 col-sm-6">         content     </div> </div> 

this want achieve:

this: enter image description here

to this: enter image description here

but instead this:enter image description here

just put in 1 row - it'll wrap down automatically.

 <div class="row">       <div class="col-md-4 col-sm-6">         content 1     </div>     <div class="col-md-4 col-sm-6">         content 2     </div>     <div class="col-md-4 col-sm-6">         content 3     </div>     <div class="col-md-4 col-sm-6">         content 4     </div>     <div class="col-md-4 col-sm-6">         content 5     </div>     <div class="col-md-4 col-sm-6">         content 6     </div> </div> 

jsfiddle


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -