In my Twitter Bootstrap 3.2 application I have div blocks that has resposive widths.
But if I remove "row" class, due to change of the content length, block heights become different so, blocks look weird. Check this width a screen bigger than 992px: http://jsfiddle.net/mavent/bFcrq/13/
If I use "row" class, my page looks good: http://jsfiddle.net/mavent/bFcrq/15/ But I can't know when to use row class. Because screen size differs, so I can't know whether I can use row class per 2 divs or 3 divs.
So my question is, how can I make this blocks to have same height so even small and big screens have pretty appearance ?
<div class="text-center"> <div class="visible-xs visible-sm">Small screen is ok, There is problem for big screens </div> <div class="well col-lg-4 col-md-4 col-sm-12 col-xs-12"> <a href=""><h2>My pretty title 1</h2><p>My subtitle which can have different number of words</p></a> </div>
Edit: Also check this behaviour in big screens: http://jsfiddle.net/bFcrq/26/
Even I use "row" class, some blocks are long some are short.
It looks very bad when I use "alert-*" classes.
Edit2: Although I prefer CSS solutions, a JQuery based solution also ok for me.
col-xs-12
, you only need to specify the number of columns if they are changing from the size above, so yourcol-small-12
will already set 12 columns forxs
as well. – APAD1