From 34741dc5db53e301556d22795ba56f7ffe0fcb49 Mon Sep 17 00:00:00 2001 From: Adrian Gaudebert Date: Thu, 11 May 2017 11:08:30 +0200 Subject: [PATCH] Forced footer to always be at the bottom of the window. --- css/main.css | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/css/main.css b/css/main.css index 95592e5..d4b7dbd 100644 --- a/css/main.css +++ b/css/main.css @@ -1,14 +1,20 @@ body { + background-color: #f5f5f5; + color: #212121; + display: flex; + flex-direction: column; font-family: 'RobotoDraft', 'Roboto', 'Helvetica Neue, Helvetica, Arial', sans-serif; font-style: normal; font-weight: 300; font-size: 16px; + height: 100vh; line-height: 1.4; - color: #212121; - background-color: #f5f5f5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; } +body > section:last-of-type { + flex: 1; +} section { padding: 1em 1em;