Skip to content

Commit f29f3e3

Browse files
committed
Improve CSS formatting
1 parent f222a89 commit f29f3e3

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

Wireframe/style.css

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ As well as useful links to learn more */
2424
--line: 1px solid;
2525
--container: 900px;
2626
}
27+
2728
/* ====== Base Elements ======
2829
General rules for basic HTML elements in any context */
2930
body {
@@ -39,11 +40,13 @@ a {
3940
border: var(--line);
4041
max-width: fit-content;
4142
}
43+
4244
img,
4345
svg {
4446
width: 100%;
4547
object-fit: cover;
4648
}
49+
4750
/* ====== Site Layout ======
4851
Setting the overall rules for page regions
4952
https://www.w3.org/WAI/tutorials/page-structure/regions/
@@ -78,10 +81,12 @@ main {
7881
display: grid;
7982
grid-template-columns: 1fr 1fr;
8083
gap: var(--space);
81-
> *:first-child {
84+
85+
>*:first-child {
8286
grid-column: span 2;
8387
}
8488
}
89+
8590
header {
8691
text-align: center;
8792
}
@@ -102,8 +107,9 @@ section {
102107
padding-bottom: var(--space);
103108

104109
text-align: left;
105-
}
106-
img {
107-
width: 100%;
108-
grid-column: span 3;
109-
}
110+
}
111+
112+
img {
113+
width: 100%;
114+
grid-column: span 3;
115+
}

0 commit comments

Comments
 (0)