From d44060ceb5c92e5205efb3114a556f8b7e16a45e Mon Sep 17 00:00:00 2001 From: Ove Klykken Date: Thu, 19 Jun 2014 15:28:30 -0400 Subject: [PATCH] Reverted bg scrolling fix. was not right --- styles.css | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/styles.css b/styles.css index f800eea..b4c63a3 100644 --- a/styles.css +++ b/styles.css @@ -1,14 +1,18 @@ -html { - background-size: cover; -height: 100%; -overflow: hidden; - background: url(assets/bg2.jpg) center top fixed; -} +.glmMap { + position: relative; + padding-bottom: 75%; // This is the aspect ratio + height: 0; + overflow: hidden; + } +.glmMap iframe { + position: absolute; + top: 0; + left: 0; + width: 100% !important; + height: 100% !important; + } body { -height:100%; -overflow: auto; --webkit-overflow-scrolling: touch; -background: transparent; + background: url(assets/bg2.jpg) center top fixed; } .hide-text { text-indent: 9999px; -- 2.17.1