Skip to content

Instantly share code, notes, and snippets.

@mynameispj
Created February 9, 2013 23:31
Show Gist options
  • Save mynameispj/4747577 to your computer and use it in GitHub Desktop.
Save mynameispj/4747577 to your computer and use it in GitHub Desktop.
jQuery: get the height of an element and set that height as an inline style on said element
$(window).load(function(){
var height = jQuery('#your-element').outerHeight(true);
$('#your-element').css('height',mainContainerVXDHeight);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment