Skip to content

Instantly share code, notes, and snippets.

@shaunbent
Forked from jamesslock/gist:6223554
Last active December 21, 2015 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaunbent/6270860 to your computer and use it in GitHub Desktop.
Save shaunbent/6270860 to your computer and use it in GitHub Desktop.
$(function(){
$('.site-header') .css({'height': (($(window).height() - 20 ))+'px'});
$(window).resize(function(){
$('.site-header') .css({'height': (( $(window).height() - 20 ))+'px'});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment