Bootstrap 3 Layout Issue -
i understand how bootstrap grid layout works, did not see how handle rows.
on medium screen, given rows col-md-2
there 6 columns of data. shift smaller screens col-sm-3
show 4 columns of data, , consequently col-xs-6
reduce down 2 columns of data on mobile.
the data pulled mysql
, each column different in length (and height). how supposed handle row <div class="row">
? since in xs
row 2 columns, in sm
4 columns , in md
handle 6 columns?
i tried removing row , things not line properly. ideas?
bootstrap handles way want - wrap 'extra' div columns on smaller devices. so, term 'row' bit misleading in might span several horizontal rows if on smaller device.
you can optionally insert special clear in between columns if have varying heights , want tops of next horizontal row line up, e.g.:
<div class="clearfix visible-xs-block"></div>
note above insert clear on xs devices since 'visible-xs-block' included in class list. if column elements same height, however, superflous next row wraps pleasantly under previous.
here helptile the bootstrap documentation example looking for:
Comments
Post a Comment