a simple jQuery plugin to "Shim" an element onto another.
ontop: element to be shimmed on
$("section.shim").shimThis({
ontop: 'header.site',
});
offset: offset of shim
$("#site-shim").shimThis({
offset: '400px',
});
can Also be combined
<script>
$offset = $("section.shim article").first().outerHeight()/2;
$("section.shim").shimThis({
ontop: 'header.site',
offset: $offset+'px'
});
</script>