Skip to content

Commit 218c5d8

Browse files
committed
footer has been centred
1 parent ad87d4b commit 218c5d8

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Wireframe/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h2>What is a branch in Git?</h2>
4141
</article>
4242
</main>
4343
<footer>
44-
<p>
44+
<p class="footer__p">
4545
This is the default, provided code and no changes have been made yet.
4646
</p>
4747
</footer>

Wireframe/style.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ main {
5858
footer {
5959
position: fixed;
6060
bottom: 0;
61+
width: 100%;
6162
}
6263
/* ====== Articles Grid Layout ====
6364
Setting the rules for how articles are placed in the main element.
@@ -93,4 +94,9 @@ article {
9394
grid-column: span 3;
9495
aspect-ratio: 16/9;
9596
}
97+
}
98+
99+
.footer__p {
100+
display: block;
101+
text-align: center;
96102
}

0 commit comments

Comments
 (0)