diff --git a/css/layout1.sass b/css/layout1.sass index c88e11a..00bb2de 100644 --- a/css/layout1.sass +++ b/css/layout1.sass @@ -35,7 +35,7 @@ img height: 600px background: image: url(../images/bird-bg.jpg) - size: auto 600px + size: cover position: top center attachment: fixed overflow: hidden diff --git a/js/functions.js b/js/functions.js index f20002f..7cb5a55 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1,4 +1,8 @@ -var pContainerHeight = $('.bird-box').height(); +var $birdbox = $('.bird-box'); +$(function() { + $birdbox.css('height', $(window).height()); +}); +var pContainerHeight = $birdbox.height(); $(window).scroll(function(){