Created
April 5, 2016 06:59
-
-
Save Sonia-Shurmi/56deba2c790008b3f8ab5c0bb454f7bf to your computer and use it in GitHub Desktop.
banner-window-height
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 height | |
var windowHeight= $(window).height(); | |
var headerHeight= $('.header-area').height() | |
$(".hero-area").css('height', windowHeight - headerHeight + 'px'); | |
$(".hero-area .item").css('height', windowHeight - headerHeight + 'px'); | |
$(".hero-area .item img").css('height', windowHeight - headerHeight + 'px'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment