The problem becomes most apparent in the example provided at this JsFiddle link
When setting the image overlay to margin-top: -100%, it does not function correctly for items larger than 300x300.
I attempted to resolve this with jQuery using the following code:
$(window).load(function () {
$(".overlay").each(function () {
var $parentHeight = $(".overlay").parent().height();
$(".overlay").css("margin-top", -$parentHeight);
});
});
However, this approach yielded the same result.