// The function to find the greatest height from a set of elements
function findMaxValue(element){
    var maxValue = undefined;
    $(element).each(function(){
        var val = parseInt($(this).height());
        if (maxValue === undefined || maxValue < val) {
            maxValue = val;
        }
    });
    return maxValue;
}
// Using the above function we set the height of all list items and the bottom margin of the image
$(document).ready(function (){
    $listItem = $('.notizia .container');
    maxValue = findMaxValue($listItem);
    $listItem.each(function(){
        $(this).css("height",maxValue);
    });
});
