Skip to content

Instantly share code, notes, and snippets.

@jamesnvc
Created December 8, 2011 21:40
Show Gist options
  • Select an option

  • Save jamesnvc/1448739 to your computer and use it in GitHub Desktop.

Select an option

Save jamesnvc/1448739 to your computer and use it in GitHub Desktop.
<!-- At the bottom of your <body> -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
// Change these ids as appropriate
var c1 = $('#leftsidbar').height();
// Not sure what the id of your center column is
var c2 = $('#content').height();
var c3 = $('#rightsidebar').height();
var h = Math.max(c1, c2, c3);
$('#col1').height(h);
$('#col2').height(h);
$('#col3').height(h);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment