Skip to content

Instantly share code, notes, and snippets.

@cheh
Forked from billerickson/functions.php
Created March 11, 2014 19:29
Show Gist options
  • Save cheh/9493238 to your computer and use it in GitHub Desktop.
Save cheh/9493238 to your computer and use it in GitHub Desktop.
jQuery(document).ready(function($){
var sidebarHeight = $("#sidebar").height();
var bodyHeight = ( $("#content").height() );
if (bodyHeight > sidebarHeight) {
$("#sidebar").css( 'min-height', bodyHeight + 85 );
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment