Bootstrap is not performing as expected in medium and small size screen.
I’m setting up a Grid for working in different styles, for large, medium and small screen sizes. The code is working fine for large screen size but when turned to medium or small works as a default Bootstrap style.
I don’t know where is the mistake if it is from me or there’s another syntax for the newest Bootstrap version.
<div class="row">
<div class="col-lg-3 col-md-4 col-sm-6" style="background: yellow; border: 1px solid red;">
col
</div>
<div class="col-lg-3 col-md-4 col-sm-6" style="background: yellow; border: 1px solid red;">
col
</div>
<div class="col-lg-3 col-md-4 col-sm-6" style="background: yellow; border: 1px solid red;">
col
</div>
<div class="col-lg-3 col-md-4 col-sm-6" style="background: yellow; border: 1px solid red;">
col
</div>
<div class="col-lg-3 col-md-4 col-sm-6" style="background: yellow; border: 1px solid red;">
col
</div>
<div class="col-lg-3 col-md-4 col-sm-6" style="background: yellow; border: 1px solid red;">
col
</div>
</div>
Is there any screen-width that makes it into 2 columns? If so, then it might be turning into 1 column when it hits the breakpoint for extra-small screens (xs). You may just have to add col-xs-6 to each div.
@lucassorenson I guess it is working fine now, the problem was my screen size, it is very wide. So, when I squeeze the window width entirely, it gets smaller then a standard mobile sizes.