From 6c70615653203b4ce4a2c6326d9ba0fd38a91f5c Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Thu, 15 May 2014 08:18:14 +0100 Subject: [PATCH] Fixed a CSS issue in Safari. --- index.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 72db227..e7c36c2 100644 --- a/index.html +++ b/index.html @@ -12,6 +12,8 @@ background: url("macarons.jpg"); background-size: 100%; color: #fff; + width: 100%; + height: 100%; } a { @@ -23,7 +25,8 @@ margin: 0 auto; text-align: center; top: 25%; - position: relative; + left: 35%; + position: absolute; font-family: 'Niconne', cursive; font-size: 600%; width: 2.5em; @@ -36,7 +39,7 @@ } #contact { - position: fixed; + position: absolute; width: 16em; left: 3em; top:85%; @@ -50,10 +53,9 @@ #rightmenu { background-color: rgba(128,0,128,0.4); color: #fff; - width: 16em; border-left: 3px solid purple; position: absolute; - left: 100%; + margin-left: 100%; top: 0; width: 15em; height: 100%; @@ -96,7 +98,6 @@ function openMenu() { $(function(){ if ( $("#rightmenu").attr("data-open") != "true" ) { - //alert($("#rightmenu").css("width")); $("#rightmenu").animate({left: "-=" + $("#rightmenu").css("width")}, 1000); $("#rightmenu").attr("data-open", "true"); }