Le soluzioni di cui sopra funzionano tutte finché non si aggiungono dei bei pulsanti di bootstrap! Come posizioni i pulsanti pensavo (sì, quello era il mio problema).
ho unito il CSS con la risposta jquery da How might I force a floating DIV to match the height of another floating DIV?
Dopo un po 'di frigging ho ottenuto questo, che lavora con i CSS, anche se i tasti non si allineano, e va bene con jQuery
tatto liberi di fissare la linea pulsante CSS fino po ':)
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(); //use ems unless px is specified
}
// for ie6, set height since min-height isn't supported
if ($.browser.msie && $.browser.version == 6.0) {
$(this).children().css({
'height': currentTallest
});
}
$(this).children().css({
'min-height': currentTallest + 40 // THIS IS A FRIG - works for jquery but doesn't help CSS only
});
});
return this;
};
$(document).ready(function() {
var btnstyle = {
position : 'absolute',
bottom : '5px',
left : '10px'
};
$('.btn').css(btnstyle);
var colstyle = {
marginBottom : '0px',
paddingBottom : '0px',
backgroundColor : '#fbf'
};
$('.col').css(colstyle);
$('.row-fluid').equalHeights();
});
CSS
0.123.516,41 mila
.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/
Semplice. Facile. [Colonne di altezza uguale con Flexbox] (http://stackoverflow.com/a/33815389/3597276). –