Skip to content

Commit e6815b0

Browse files
committed
Solve the footer center problem
Update the css stylesheet to center the footer
1 parent d6a97fd commit e6815b0

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Wireframe/style.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ https://www.w3.org/WAI/tutorials/page-structure/regions/
5656
footer {
5757
position: fixed;
5858
bottom: 0;
59+
left: 0;
60+
width: 100%;
5961
text-align: center;
60-
transform: translateX(100%);
6162
margin-bottom: calc(var(--space));
6263
}
6364

@@ -77,10 +78,11 @@ main {
7778
margin: 0 auto calc(var(--space) * 1) auto;
7879
display: grid;
7980
grid-template-columns: 1fr 1fr;
81+
padding-bottom: 80px;
8082

81-
grid-template-rows: auto 1fr;
83+
/* grid-template-rows: auto 1fr;
8284
min-height: 80vh;
83-
gap: var(--space);
85+
gap: var(--space); */
8486

8587
>*:first-child {
8688
grid-column: span 2;

0 commit comments

Comments
 (0)