On a bootstrapped page layout, misaligned well heights within a single row are ugly at best and downright unprofessional looking at worst
So I created a simple jQuery routine which will:
- Cycle through each row
- Create a variable = 0
- For each well in this row
- Check the height of each well
- If the height is larger than the current largest value increase it
- Once finished set the height of all the wells in this row (already selected) to be the largest height
$('.row').each(function(){ var wellHeight=0 $(this).find('.well').each( function(){ var temp = $(this).height() if (temp>wellHeight){ wellHeight=temp } }).height(wellHeight+"px") })
I’ve found a similar solution for such cases:
http://osvaldas.info/flexbox-based-responsive-equal-height-blocks-with-javascript-fallback
Solid quickfix for an issue I see in a lot of “dashboard” and “widget”-based apps! Foundation UI has Equalizer (http://foundation.zurb.com/docs/components/equalizer.html), which gets the job done in that framework in pretty much the same way.
Looks like there might also be a CSS only solution for Bootstrap
http://www.bootply.com/126437
yeah flexbox looks awesome but unfortunately very old IE unusable 😦
http://caniuse.com/#feat=flexbox