Bootstrap 3: Stack cols only when screen size is less than 500px -


i want bootstrap stack columns when device size less 500px, below code stacks them after reach small threshold 768. how can change that?

<div class="row">   <div class=" col-sm-4">   1   </div>   <div class=" col-sm-4">   2   </div>   <div class=" col-sm-4">   3   </div> 

you can change less file variables

change

screen-sm-min = 768px  

to

screen-sm-min = 500px 

if want small devices in general (default < 768px ) use

class=" col-sm-4 col-xs-12" 

http://getbootstrap.com/css/#grid


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -