Skip to content

Commit 9911904

Browse files
authored
included css style with a sticky footer with flexbox, so text doesn't overlap with footer
1 parent b033e62 commit 9911904

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

Wireframe/style.css

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@ As well as useful links to learn more */
2626
}
2727
/* ====== Base Elements ======
2828
General rules for basic HTML elements in any context */
29+
html, body {
30+
height: 100%;
31+
margin: 0;
32+
33+
}
2934
body {
35+
display: flex;
36+
flex-direction: column;
37+
min-height:100vh;
3038
background: var(--paper);
3139
color: var(--ink);
3240
font: var(--font);
@@ -46,13 +54,18 @@ Setting the overall rules for page regions
4654
https://www.w3.org/WAI/tutorials/page-structure/regions/
4755
*/
4856
main {
57+
flex: 1;
4958
max-width: var(--container);
5059
margin: 0 auto calc(var(--space) * 4) auto;
5160
}
5261

5362
footer {
54-
position: fixed;
55-
bottom: 0;
63+
background: #f5f5f5;
64+
text-align: center;
65+
padding: 10px;
66+
border-top: 1px solid #ccc;
67+
/*position: fixed;
68+
bottom: 0;*/
5669
}
5770

5871

0 commit comments

Comments
 (0)