Skip to content

Commit cb3e300

Browse files
committed
updated css with grid
1 parent f77c492 commit cb3e300

1 file changed

Lines changed: 19 additions & 13 deletions

File tree

Wireframe/style.css

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
--space: clamp(6px, 6px + 2vw, 15px);
88
--line: 1px solid rgb(201, 198, 198);
99
}
10-
/* ====== Base Elements ======
11-
General rules for basic HTML elements in any context */
10+
11+
1212
body {
1313
background: var(--paper);
1414
color: var(--ink);
@@ -23,9 +23,15 @@ h1{
2323
h2, p{
2424
margin: var(--space);
2525
}
26+
main {
27+
max-width: 900px;
28+
margin: 0 auto calc(var(--space) * 4) auto;
29+
}
30+
2631
a {
27-
padding: var(--space);
28-
margin: var(--space);
32+
display: block;
33+
padding: 10px;
34+
margin: 0 auto;
2935
border: var(--line);
3036
max-width: fit-content;
3137
border-radius: 5px;
@@ -35,14 +41,8 @@ svg {
3541
width: 100%;
3642
object-fit: cover;
3743
}
38-
/* ====== Site Layout ======
39-
Setting the overall rules for page regions
40-
https://www.w3.org/WAI/tutorials/page-structure/regions/
41-
*/
42-
main {
43-
max-width: 900px;
44-
margin: 0 auto calc(var(--space) * 4) auto;
45-
}
44+
45+
4646
footer {
4747
padding: var(--space);
4848
margin: var(--space);
@@ -55,8 +55,14 @@ article {
5555
border-radius: 5px;
5656
padding-bottom: var(--space);
5757
text-align: left;
58+
gap: 20px;
5859
}
5960
.firstrow {
6061
display: grid;
61-
grid-column: 1fr;
62+
grid-template-columns: 1fr;
63+
}
64+
.secondrow {
65+
display: grid;
66+
grid-template-columns: 1fr 1fr;
67+
gap: 20px;
6268
}

0 commit comments

Comments
 (0)