Skip to content

Instantly share code, notes, and snippets.

@zaigham
Last active December 15, 2015 16:49
Show Gist options
  • Save zaigham/5292023 to your computer and use it in GitHub Desktop.
Save zaigham/5292023 to your computer and use it in GitHub Desktop.
A quick solution for same height columns.
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
var max = 0;
$(".col").each(function(){
if ($(this).height() > max) {
max = $(this).height();
}
});
$(".col").height(max);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment