Skip to content

Instantly share code, notes, and snippets.

@AlexMcowkin
Last active August 29, 2015 14:16
Show Gist options
  • Save AlexMcowkin/b558b1c9e5401ffac4a2 to your computer and use it in GitHub Desktop.
Save AlexMcowkin/b558b1c9e5401ffac4a2 to your computer and use it in GitHub Desktop.
jQuery Resize Height
function heightDetect()
{
$(".main_head").css("height", $(window).height());
};
heightDetect();
$(window).resize(function()
{
heightDetect();
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment