Skip to content

Commit 21f956c

Browse files
committed
using mentor comment i merged the property of two main selectors in to one and also changed the position of footer in to fixed.
1 parent 5bdf634 commit 21f956c

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Wireframe/style.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,10 @@ main > *:first-child > img {
6464
Setting the overall rules for page regions
6565
https://www.w3.org/WAI/tutorials/page-structure/regions/
6666
*/
67-
main {
68-
max-width: var(--container);
69-
margin: 0 auto calc(var(--space) * 4) auto;
70-
}
7167
footer {
68+
position: fixed;
69+
bottom: 0;
70+
width: 100%;
7271
text-align: center;
7372
}
7473
/* ====== Articles Grid Layout ====
@@ -79,6 +78,8 @@ https://developer.chrome.com/docs/devtools/css/grid
7978
https://gridbyexample.com/learn/
8079
*/
8180
main {
81+
max-width: var(--container);
82+
margin: 0 auto calc(var(--space) * 4) auto;
8283
display: grid;
8384
grid-template-columns: 1fr 1fr;
8485
gap: var(--space);

0 commit comments

Comments
 (0)