From 841d1a20bfe47543b8f5c0cf06ffe4856bec8649 Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Thu, 9 Jan 2020 13:55:36 -0500 Subject: [PATCH] Fix footer not being at bottom of page --- static/css/style.css | 14 +++++++++++++- templates/footer.html | 2 +- templates/index.html | 3 ++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 59d2862..68ef5f2 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,9 +1,15 @@ @font-face {font-family: "Krungthep"; src: url("//db.onlinewebfonts.com/t/736cf5b08b01082a3645e14038868e20.eot"); src: url("//db.onlinewebfonts.com/t/736cf5b08b01082a3645e14038868e20.eot?#iefix") format("embedded-opentype"), url("//db.onlinewebfonts.com/t/736cf5b08b01082a3645e14038868e20.woff2") format("woff2"), url("//db.onlinewebfonts.com/t/736cf5b08b01082a3645e14038868e20.woff") format("woff"), url("//db.onlinewebfonts.com/t/736cf5b08b01082a3645e14038868e20.ttf") format("truetype"), url("//db.onlinewebfonts.com/t/736cf5b08b01082a3645e14038868e20.svg#Krungthep") format("svg"); } +html { + height: 100%; +} + body { background-color: #00BEBB; font-family: "Krungthep"; - color: #eee; + color: #eee; + position: relative; + min-height: 100%; } p { @@ -104,3 +110,9 @@ p { nav { line-height: normal !important; } + +.footer-nav { + position: absolute; + bottom: 0; + width: 100%; +} diff --git a/templates/footer.html b/templates/footer.html index 6459206..6899db3 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -1,4 +1,4 @@ -