thanks sergio for helping me test this! anyone else want to lend a hand. here's my latest version. seems to work for me, and almost works for sergio (though not in child themes apparently)
// KIA Sticky Footer
function kia_sticky() { ?>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function($){
$.getDocHeight = function(){
return Math.max(
$(document).height(),
$(window).height(),
/* For opera: */
document.documentElement.clientHeight
);
};
matchHeight();
function matchHeight() {
//available height of window - #header and #footer
var mainHeight = $.getDocHeight() - $("#header").outerHeight() - $("#leader").outerHeight() - $("#footer").outerHeight() - parseInt($("#footer").css("margin-top")) - 1 - parseInt($("#main").css("padding-top"))- parseInt($("#main").css("padding-bottom")) - $("#wpadminbar").outerHeight() ;
$('#main').css('min-height', mainHeight );
}
$(window).resize(matchHeight);
});
</script>
<?php
}
add_action('wp_head', 'kia_sticky');
// End KIA Sticky Footer
suggestions?