Skip to content

Commit 5d620ad

Browse files
committed
Update the css stylesheet
To clear the problem by satisfying all conditions
1 parent e9ec79e commit 5d620ad

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

Wireframe/style.css

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,16 @@ As well as useful links to learn more */
2929

3030
/* ====== Base Elements ======
3131
General rules for basic HTML elements in any context */
32+
3233
body {
3334
background: var(--paper);
3435
color: var(--ink);
3536
font: var(--font);
37+
position: relative;
38+
min-height: 100vh;
39+
box-sizing: border-box;
40+
padding-bottom: 60px;
41+
/* Adjust this value based on your footer's height */
3642
}
3743

3844
.hyperlink {
@@ -53,15 +59,26 @@ svg {
5359
Setting the overall rules for page regions
5460
https://www.w3.org/WAI/tutorials/page-structure/regions/
5561
*/
62+
63+
64+
5665
footer {
57-
/* position: fixed; */
66+
position: fixed;
5867
bottom: 0;
5968
left: 0;
6069
width: 100%;
61-
text-align: center;
62-
margin-bottom: calc(var(--space));
70+
height: 50px;
71+
/* Explicit height helps match the body padding */
72+
background: var(--paper);
73+
/* Ensures content scrolling underneath is hidden */
74+
75+
/* Flexbox makes centering text perfectly reliable */
76+
display: flex;
77+
justify-content: center;
78+
align-items: center;
6379
}
6480

81+
6582
#branch {
6683
margin-bottom: calc(var(--space) * 3);
6784
}

0 commit comments

Comments
 (0)