Skip to content

Commit 6192bc5

Browse files
committed
Make footer stick to the bottom of the page
1 parent 9ee3236 commit 6192bc5

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

assets/css/style.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,21 @@ html, body {
733733
color: var(--VeryLightGray);
734734

735735
font-size: 1.0em;
736+
737+
display: flex;
738+
flex-direction: column;
739+
min-height: 100vh;
740+
margin: 0;
741+
}
742+
743+
#main {
744+
flex: 1;
745+
}
746+
747+
.site-header,
748+
#hero,
749+
.site-footer {
750+
flex-shrink: 0;
736751
}
737752

738753
.img-res {

0 commit comments

Comments
 (0)