File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed
starter/03-CSS-Fundamentals Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ <h4>The Basic Language of the Web: HTML</h4>
16
16
<h5>The Basic Language of the Web: HTML</h5>
17
17
<h6>The Basic Language of the Web: HTML</h6>
18
18
-->
19
-
19
+ < header class =" main-header " >
20
20
< h1 > 📘 The Code Magazine</ h1 >
21
21
22
22
< nav >
@@ -28,7 +28,7 @@ <h1>📘 The Code Magazine</h1>
28
28
</ header >
29
29
30
30
< article >
31
- < header >
31
+ < header class =" post-header " >
32
32
< h2 > The Basic Language of the Web: HTML</ h2 >
33
33
34
34
< img
Original file line number Diff line number Diff line change 1
1
/* Universal selector. No inheritance. */
2
2
* {
3
3
/* border-top: 10px solid *1098ad; */
4
+ padding : 0 ;
5
+ margin : 0 ;
4
6
}
5
7
6
8
/*
@@ -13,6 +15,10 @@ body {
13
15
font-family : sans-serif;
14
16
}
15
17
18
+ article {
19
+ margin-bottom : 60px ;
20
+ }
21
+
16
22
h1 , h2 , h3 {
17
23
color : # 1098ad ;
18
24
}
25
31
26
32
h2 {
27
33
font-size : 40px ;
34
+ margin-bottom : 30px ;
28
35
}
29
36
30
37
h3 {
31
38
font-size : 30px ;
39
+ margin-bottom : 20px ;
32
40
}
33
41
34
42
h4 {
40
48
p {
41
49
font-size : 22px ;
42
50
line-height : 1.5 ;
51
+ margin-bottom : 50px ;
52
+ }
53
+
54
+ ul , ol {
55
+ margin-left : 50px ;
56
+ margin-bottom : 20px ;
43
57
}
44
58
45
59
li {
46
60
font-size : 20px ;
61
+ margin-bottom : 10px ;
47
62
}
48
63
49
64
li : first-child {
@@ -52,6 +67,7 @@ li:first-child {
52
67
53
68
li : last-child {
54
69
font-weight : italic;
70
+ margin-bottom : 0px ;
55
71
}
56
72
57
73
li : nth-child (even) {
@@ -62,6 +78,7 @@ aside {
62
78
background-color : # f7f7f7 ;
63
79
border-bottom : 5px solid # 1098ad ;
64
80
border-top : 5px solid # 1098ad ;
81
+ padding : 50px 0 ;
65
82
}
66
83
67
84
/* LVHA */
@@ -125,6 +142,12 @@ nav {
125
142
126
143
.main-header {
127
144
background-color : # f7f7f7 ;
145
+ padding : 20px 40px ;
146
+ margin-bottom : 60px ;
147
+ }
148
+
149
+ .post-header {
150
+ margin-bottom : 40px ;
128
151
}
129
152
130
153
/* Resolving conflicts. */
You can’t perform that action at this time.
0 commit comments