From 67e99779accd997ec4c1ee7909681d07ccc140ee Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Tue, 17 Sep 2013 23:04:52 +0100 Subject: [PATCH] Fixed issue #146 where footer was sitting above other html elements --- application/views/layout/footer.php | 5 ++++- application/views/layout/header.php | 3 +-- application/views/user/profile.php | 1 + css/main.css | 20 ++++++++++++-------- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/application/views/layout/footer.php b/application/views/layout/footer.php index 4972f3ed..37526163 100644 --- a/application/views/layout/footer.php +++ b/application/views/layout/footer.php @@ -1,6 +1,9 @@ + diff --git a/application/views/layout/header.php b/application/views/layout/header.php index 6f19d877..46d6ee1b 100644 --- a/application/views/layout/header.php +++ b/application/views/layout/header.php @@ -34,7 +34,7 @@ - +
@@ -124,4 +124,3 @@
-
diff --git a/application/views/user/profile.php b/application/views/user/profile.php index 770f6aa3..d7017251 100644 --- a/application/views/user/profile.php +++ b/application/views/user/profile.php @@ -68,3 +68,4 @@
+
diff --git a/css/main.css b/css/main.css index 97e03115..e76b57f0 100644 --- a/css/main.css +++ b/css/main.css @@ -1,14 +1,18 @@ -html, body {height: 100%;} - -#wrap {min-height: 100%;} - -#main {overflow:hidden; padding-bottom: 3em; /* must be same height as the footer */ } +body,html{ + height:100%; +} +#wrap { + min-height:100%; +} +#footer{ + height:40px; + margin-top:-40px; + text-align: right; +} + #container { padding-top: 50px; width: 940px; margin: 0 auto; } -#footer { width: 940px; margin: -3em auto; text-align: right; position: relative; clear:both; height: 3em; -/* margin-top must be the negative value of footer height */ } - table .titles { font-weight: bold; color: #439BF6; } table .title { font-weight: bold; color: #439BF6; }