From 5721be1d15ba02e47f98fb9a487248adb297a082 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Wed, 14 Sep 2011 18:22:26 +0200 Subject: Fix #26. Footer is now relative --- budget/static/main.css | 9 +++++++-- budget/templates/layout.html | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/budget/static/main.css b/budget/static/main.css index aa2be62..d1bf24b 100644 --- a/budget/static/main.css +++ b/budget/static/main.css @@ -1,6 +1,10 @@ @import "bootstrap-1.0.0.min.css"; @import url(http://fonts.googleapis.com/css?family=Lobster|Comfortaa); +html body{ + height: 100%; +} + .topbar h3{ margin-left: 75px; } .topbar ul{ padding-left: 75px; } div.topbar ul.secondary-nav { padding-right: 75px; } @@ -80,8 +84,9 @@ div.topbar ul.secondary-nav { padding-right: 75px; } height: 100px; } -.footer{ - position: absolute; +#footer{ + margin-top: 30px; + position: relative; bottom: 0px; width: 100%; text-align: center; diff --git a/budget/templates/layout.html b/budget/templates/layout.html index afdda85..d79c39f 100644 --- a/budget/templates/layout.html +++ b/budget/templates/layout.html @@ -81,7 +81,7 @@ {% endblock %} {% block footer %} -