javascript - Bootstrap - column ordering/mixing -
how in bootstrap?

from md size xs size want change ordering of columns. 2 rows not important if needed.
col-sm-12 ensures div full width on small screen. xs: small, md: medium , lg: large. number ratio. maximum width 12, 6 half width , col: column obviously. have used 2 rows prefer column in cases no special reason.
for example if wanted div take 1/3th of div on small screen use col-sm-4 since 4 * 3 = 12.
read documentation here - grid system
solution problem here:
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-sm-12 col-lg-6 col-md-6">color red</div> <div class="col-sm-12 col-md-6 hidden-xs">color blue</div> </div> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="col-sm-12 col-md-6">yellow</div> <div class="col-sm-12 col-xs-12 col-md-6">orange</div> <div class="col-sm-12 col-md-6 visible-xs hidden-md hidden-sm hidden-lg">color blue</div> </div>
Comments
Post a Comment