One solution is to simply compare the two and make them equal height with a javascript/jQuery function.
function equalHeight(one,two) {
var tallest = 0;
tallest=one.height();
if (tallest < two.height()) {
tallest=two.height();
}
one.height(tallest);
two.height(tallest);
}
Call this function in a document ready like so
(function ($) {
// drupal jquery wrapper
// drupal jquery wrapper
$(document).ready(function() {
equalHeight($("#content"),$("#rightbar"));
});
function equalHeight(one,two) {
var tallest = 0;
tallest=one.height();
if (tallest < two.height()) {
tallest=two.height();
}
one.height(tallest);
two.height(tallest);
}
// emdof drupal jquery wrapper
}(jQuery));
No comments:
Post a Comment