Difference between column type in bootstrap -
i confused column in bootstrap. study bootstrap cannot recognize different between columns type.
.col-md-4 .col-xs-4 .col-sm-4 .col-lg-4 .col-sm-offset-2
i understand numbers mean. , understand 12 column different between md, xs ....
i checked multiple website cannot understand well. if can give me details pleasure.
these different column types used making website responsive. css responds screen sizes greater 1200px has prefix lg (large) it, screen sizes ranging 992px 1199px has prefix md (medium), sm (small) screen sizes 768px 991px. lesser 768px falls under xs (extra small) category. if have code this:
<div class="col-md-5 col-lg-4 col-sm-6 col-xs-12"></div> <div class="col-md-5 col-lg-4 col-sm-6 col-xs-12"></div> <div class="col-md-5 col-lg-4 col-sm-6 col-xs-12"></div>
in case have 3 div's visible on large screen, 2 div's on medium screen, 2 on smaller screen , 1 div on small screen. each of column type has been defined in separate media query. 1 of column type affects div's width.
Comments
Post a Comment