From 2308e54db43abfa5e9020bac637b5c7ac88e692e Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 18 Mar 2023 16:32:55 +0900 Subject: feat(style): fix site footer at the bottom if the main text is short --- static/style.css | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'static') diff --git a/static/style.css b/static/style.css index 92b99c3..f59691b 100644 --- a/static/style.css +++ b/static/style.css @@ -11,8 +11,12 @@ body { color: #000; background-color: #fff; line-height: 1.6; + height: 100vh; margin: 0; padding: 0; + display: flex; + flex-direction: column; + justify-content: space-between; } @media screen and (max-width: 768px) { @@ -32,6 +36,7 @@ header.header { main { max-width: 900px; margin: 2rem auto; + flex-grow: 1; } footer { -- cgit v1.2.3-70-g09d2