From 4b6e77ad9172b29839b76e29614bf4c0ba81c90d Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 11 Aug 2012 11:36:08 +0200 Subject: show footer at bottom --- module/web/static/css/default/style.css | 26 ++++++++++++++++++++++---- module/web/templates/default/base.html | 33 ++++++++++++++++----------------- 2 files changed, 38 insertions(+), 21 deletions(-) (limited to 'module/web') diff --git a/module/web/static/css/default/style.css b/module/web/static/css/default/style.css index 166b8c452..bf5e3e7d9 100644 --- a/module/web/static/css/default/style.css +++ b/module/web/static/css/default/style.css @@ -3,6 +3,14 @@ General */ +* { + margin: 0; +} + +html, body { + height: 100%; +} + body { margin: 0; padding: 0; @@ -47,16 +55,24 @@ a { a:hover { } -#wrapper { - width: 960px; - margin: 70px auto 0; - padding: 0; +#wrap { + min-height: 100%; +} + +#content { + margin-left: 150px; + margin-right: 150px; + padding-bottom: 100px; /* Height of footer */ } /* Header */ +#push { + height: 70px; /* Pushes content down with height of header */ +} + header { background: url("../../img/default/main-wrapper-bg.png") repeat-x; height: 70px; @@ -101,9 +117,11 @@ header img.logo { Footer */ + footer { background: url("../../img/default/main-wrapper-bg.png") repeat-x; height: 100px; + margin-top: -100px; position: relative; width: 100%; z-index: 10; diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html index 36a81d662..879faa0bd 100644 --- a/module/web/templates/default/base.html +++ b/module/web/templates/default/base.html @@ -16,26 +16,28 @@ {% endblock %} -
-
- - pyLoad -
-
-
- {% for message in messages %} -

{{ message }}

- {% endfor %} +
+
+
+ + pyLoad +
+
+
+
+ {% for message in messages %} +

{{ message }}

+ {% endfor %} -

Test!

+

Test!

- {% block content %} - {% endblock content %} + {% block content %} + {% endblock content %} +
- -
-
- {% block deferred %} {% endblock deferred %} -- cgit v1.2.3