File tree Expand file tree Collapse file tree 2 files changed +47
-23
lines changed
starter/03-CSS-Fundamentals Expand file tree Collapse file tree 2 files changed +47
-23
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ <h1>📘 The Code Magazine</h1>
29
29
</ header >
30
30
31
31
< article >
32
- < header >
32
+ < header class =" post-header " >
33
33
< h2 > The Basic Language of the Web: HTML</ h2 >
34
34
35
35
< img
Original file line number Diff line number Diff line change 1
1
* {
2
2
/* border-top: 10px solid #1098ad; */
3
+ margin : 0 ;
4
+ padding : 0 ;
3
5
}
4
6
5
7
/* Inheritance example */
9
11
border-top : 10px solid # 1098ad ;
10
12
}
11
13
14
+ .main-header {
15
+ background-color : # f7f7f7 ;
16
+ /* padding: 20px;
17
+ padding-left: 40px;
18
+ padding-right: 40px; */
19
+ padding : 20px 40px ;
20
+ margin-bottom : 60px ;
21
+ }
22
+
23
+ /* Inheritance example */
24
+ nav {
25
+ font-size : 18px ;
26
+ }
27
+
28
+ .post-header {
29
+ margin-bottom : 40px ;
30
+ }
31
+
32
+ article {
33
+ margin-bottom : 60px ;
34
+ }
35
+
36
+ aside {
37
+ background-color : # f7f7f7 ;
38
+ border-top : 5px solid # 1098ad ;
39
+ border-bottom : 5px solid # 1098ad ;
40
+ padding : 50px 0 ;
41
+ }
42
+
12
43
h1 ,
13
44
h2 ,
14
45
h3 {
23
54
24
55
h2 {
25
56
font-size : 40px ;
26
- font-family : sans-serif ;
57
+ margin-bottom : 30 px ;
27
58
}
28
59
29
60
h3 {
30
61
font-size : 30px ;
31
- font-family : sans-serif;
62
+ margin-bottom : 20px ;
63
+ margin-top : 40px ;
32
64
}
33
65
34
66
h4 {
35
67
font-size : 20px ;
36
- font-family : sans-serif;
37
68
text-transform : uppercase;
38
69
text-align : center;
39
70
}
40
71
41
72
p {
42
73
font-size : 22px ;
43
- font-family : sans-serif;
44
74
line-height : 1.5 ;
75
+ margin-bottom : 15px ;
76
+ }
77
+
78
+ ul ,
79
+ ol {
80
+ margin-left : 50px ;
81
+ margin-bottom : 20px ;
45
82
}
46
83
47
84
li {
48
- font-family : sans-serif;
49
85
font-size : 20px ;
86
+ margin-bottom : 10px ;
87
+ }
88
+
89
+ li : last-child {
90
+ margin-bottom : 0 ;
50
91
}
51
92
52
93
/* css descendants are actually a bad practice */
77
118
list-style : none;
78
119
}
79
120
80
- .main-header {
81
- background-color : # f7f7f7 ;
82
- /* background-color: #444; */
83
- }
84
-
85
- aside {
86
- background-color : # f7f7f7 ;
87
- /* background-color: #444; */
88
- border-top : 5px solid # 1098ad ;
89
- border-bottom : 5px solid # 1098ad ;
90
- }
91
-
92
121
/* body {
93
122
background-color: azure;
94
123
}
@@ -166,8 +195,3 @@ footer p {
166
195
/* color: blue !important; << NOT A GOOD PRACTICE */
167
196
color : blue;
168
197
}
169
-
170
- /* Inheritance example */
171
- nav {
172
- font-size : 18px ;
173
- }
You can’t perform that action at this time.
0 commit comments