Skip to content

Commit f273d56

Browse files
authored
Refactor CSS for header and main layout
1 parent d27a197 commit f273d56

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

Wireframe/style.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ body {
3333
font: var(--font);
3434
padding-bottom: 80px;
3535
}
36-
h1{
37-
text-align: left;
36+
header {
37+
text-align: center;
38+
margin-bottom: calc(var(--space) * 2);
3839
}
3940
a {
4041
padding: var(--space);
@@ -70,11 +71,16 @@ Play with the options that come up.
7071
https://developer.chrome.com/docs/devtools/css/grid
7172
https://gridbyexample.com/learn/
7273
*/
74+
/* ====== Articles Grid Layout ==== */
7375
main {
7476
display: grid;
75-
grid-template-columns: 1fr;
77+
grid-template-columns: 1fr 1fr;
7678
gap: var(--space);
77-
}
79+
}
80+
81+
main > *:first-child {
82+
grid-column: span 2;
83+
}
7884
}
7985
/* ====== Article Layout ======
8086
Setting the rules for how elements are placed in the article.

0 commit comments

Comments
 (0)