Skip to content

Commit 50bd082

Browse files
committed
Ensure the footer is always at the bottom of the page
1 parent 8e78e05 commit 50bd082

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sass/_base.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ html {
1515
text-rendering: optimizelegibility;
1616
}
1717

18+
body {
19+
/* Ensure the footer is always at the bottom */
20+
display: flex;
21+
flex-flow: column;
22+
height: 100vh;
23+
justify-content: space-between;
24+
}
25+
1826
main {
1927
/*
2028
Center the main content of the page.
@@ -54,6 +62,7 @@ main+footer {
5462
}
5563

5664
footer {
65+
margin-top: 1em;
5766
.space {
5867
width: 100%;
5968
display: flex;

0 commit comments

Comments
 (0)