The above solutions work until you add beautiful bootstrap buttons! How do you position the buttons that I thought (yes, that was my problem).
I combined CSS with a jquery answer from How can I make a floating DIV match the height of another floating DIV?
After a bit of frigging, I got this that works with CSS, although the buttons don't line up, and fine with jQuery
Feel free to fix CSS line line bit :)
JQuery
$.fn.equalHeights = function (px) { $(this).each(function () { var currentTallest = 0; $(this).children().each(function (i) { if ($(this).height() > currentTallest) { currentTallest = $(this).height(); } }); if (!px && Number.prototype.pxToEm) { currentTallest = currentTallest.pxToEm();
CSS
.col { margin-bottom: -99999px; padding-bottom: 99999px; background-color:#ffb; position:relative; } .col-wrap { overflow: hidden; } .btn{ margin-left:10px ; } p:last-child { margin-bottom:20px ; }
jsfiddle - http://jsfiddle.net/brianlmerritt/k8Bkm/
brianlmerritt Feb 13 '14 at 9:17 2014-02-13 09:17
source share