Skip to content

Commit 0d0fc95

Browse files
author
lintsang
committed
fixed the footer at the page all the time
1 parent c06f400 commit 0d0fc95

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

Wireframe/style.css

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,24 @@ header, main {
7474

7575
main {
7676
max-width: var(--container);
77-
margin: 0 auto calc(var(--space) * 4) auto;
77+
margin: 0 auto calc(var(--space) * 10) auto;
78+
79+
min-height: 110dvh;
80+
display: grid;
7881
}
7982

8083
footer {
81-
margin-top:auto;
84+
position: fixed;
85+
bottom: 0;
86+
font-size: smaller;
8287
width: 100%;
83-
margin-inline: auto;
88+
height: auto;;
8489
text-align: center;
85-
background-color: #eee;
86-
padding: 60px 0;
87-
overflow: hidden;
88-
white-space: nowrap;
89-
text-overflow: ellipsis;
90+
background-color: #ababab;
91+
padding: 10px 0;
92+
93+
94+
9095
}
9196

9297
/* ====== Articles Grid Layout ====

0 commit comments

Comments
 (0)