From 472af98335b24e136a1678c4fdc0f6e4152a8d14 Mon Sep 17 00:00:00 2001 From: Mark Eriksson Date: Mon, 1 Jun 2015 21:12:34 +0100 Subject: [PATCH 1/2] Make .bird-box same height as window height --- js/functions.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(){ From 9cce2e6904d5f0a836bf12f2fe6c5b682a4e8813 Mon Sep 17 00:00:00 2001 From: Mark Eriksson Date: Mon, 1 Jun 2015 21:14:32 +0100 Subject: [PATCH 2/2] Update layout1.sass --- css/layout1.sass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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