Bootstrap - number of columns in the list on the sidebar -
on small size want have 3 columns of list above 'main' div. on bigger size screens need 1 column on left of 'main' div.
it works fine on extra-small size on bigger screens affects 'sidebar div' in way on top of 'main', had class assigned "col-xs-4 col-sm-12". how can change it?
<div class="container"> <div class="row"> <div class="col-sm-2" id="sidebar"> <ul class="row"> <li "col-xs-4 col-sm-12"> 1</li> <li "col-xs-4 col-sm-12"> 2 </li> <li "col-xs-4 col-sm-12"> 3</li> <li "col-xs-4 col-sm-12"> 4</li> <li "col-xs-4 col-sm-12"> 5</li> </ul> <div class="col-sm-10" id="main"> </div> </div>
Comments
Post a Comment