Skip to content

Commit da75697

Browse files
committed
Updated footer so it is fixed at the bottom of the page
1 parent a7a294d commit da75697

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

Wireframe/style.css

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,19 @@ Setting the overall rules for page regions
5555
https://www.w3.org/WAI/tutorials/page-structure/regions/
5656
*/
5757
main {
58-
max-width: var(--container);
59-
margin: 0 auto calc(var(--space) * 4) auto;
58+
max-width: var(--container);
59+
margin: 0 auto 80px auto;
6060
}
6161
footer {
62-
text-align: center;
63-
font-size: 0.8rem;
64-
color: var(--ink);
65-
margin-top: 40px;
66-
padding: 20px;
62+
position: fixed;
63+
bottom: 0;
64+
left: 0;
65+
width: 100%;
66+
text-align: center;
67+
font-size: 0.8rem;
68+
padding: 10px;
69+
background: var(--paper);
70+
z-index: 10;
6771
}
6872
/* ====== Articles Grid Layout ====
6973
Setting the rules for how articles are placed in the main element.

0 commit comments

Comments
 (0)