Skip to content

Instantly share code, notes, and snippets.

@jimmy89Li
Created March 30, 2017 10:03
Show Gist options
  • Save jimmy89Li/6b2c3004e80dd7df77dccbb4381a1fc8 to your computer and use it in GitHub Desktop.
Save jimmy89Li/6b2c3004e80dd7df77dccbb4381a1fc8 to your computer and use it in GitHub Desktop.
Div height based on other div height
var secondTop = (($(window).width())<660) ? ($('.subscribe').outerHeight()/2) : 160;
$('.second .topPattern').height(secondTop);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment