Created
February 9, 2013 23:31
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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