Skip to content

Commit ed0fbbf

Browse files
authored
Merge pull request #13 from nibble-4bits/Issue-12
Position footer correctly using grid
2 parents 4b064fd + 1165551 commit ed0fbbf

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/css/layout.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,20 @@ html {
77
body {
88
font-family: "Lato", sans-serif;
99
background-color: #eef0f2;
10+
margin: 0;
11+
height: 100%;
12+
display: grid;
13+
grid-template-areas:
14+
"sudoku"
15+
"gap"
16+
"footer";
17+
grid-template-rows: min-content 1fr min-content;
1018
}
1119

1220
.container {
21+
grid-area: sudoku;
1322
display: grid;
23+
margin-top: 1rem;
1424
grid-template-areas:
1525
"title"
1626
"board"
@@ -50,9 +60,7 @@ body {
5060
}
5161

5262
footer {
53-
position: absolute;
54-
left: 0;
55-
bottom: 0;
63+
grid-area: footer;
5664
width: 100%;
5765
background-color: #196cca;
5866
color: #eef0f2;

0 commit comments

Comments
 (0)