Skip to content

Commit 5c8e825

Browse files
Fix footer position
1 parent b6de47e commit 5c8e825

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

assets/stylesheets/_screen.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88

99
html,
1010
body {
11-
height: 100%;
11+
display: flex;
12+
flex-direction: column;
13+
position: relative;
14+
min-height: 100vh;
1215
}
1316

1417
body {
@@ -417,7 +420,6 @@ h2.header-with-anchor {
417420
}
418421

419422
main {
420-
margin: auto;
421423
padding: 4rem 0 0;
422424

423425
.callout {
@@ -469,6 +471,7 @@ footer[role="contentinfo"] {
469471
color: var(--color-nav-color);
470472
padding: 20px 30px;
471473
min-height: 74px;
474+
margin-top: auto;
472475

473476
p {
474477
font-size: 0.625em;

0 commit comments

Comments
 (0)