File tree Expand file tree Collapse file tree 2 files changed +43
-22
lines changed
starter/03-CSS-Fundamentals Expand file tree Collapse file tree 2 files changed +43
-22
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
- /* border-top: 10px solid #1098ad; */
2
+ padding : 0 ;
3
+ margin : 0 ;
3
4
}
4
5
5
6
body {
6
7
color : # 444 ;
7
8
font-family : sans-serif;
9
+ border-top : 10px solid # 1098ad ;
10
+ }
11
+
12
+ nav {
13
+ font-size : 18px ;
14
+ }
15
+
16
+ article {
17
+ margin-bottom : 60px ;
18
+ }
19
+ .main-header {
20
+ background-color : # f7f7f7 ;
21
+ /* padding: 20px;
22
+ padding-left: 40px;
23
+ padding-right: 40px; */
24
+ padding : 20px 40px ;
25
+ margin-bottom : 60px ;
26
+ }
27
+ .post-header {
28
+ margin-bottom : 40px ;
29
+ }
30
+ aside {
31
+ background-color : # f7f7f7 ;
32
+ border-top : 5px solid # 1098ad ;
33
+ border-bottom : 5px solid # 1098ad ;
34
+ padding : 50px 0 ;
8
35
}
9
36
10
- h1 ,
11
- h2 ,
12
- h3 ,
13
- h4 ,
14
- p ,
15
- /* li { */
16
- /* font-family: sans-serif; */
17
- /* color: #444; */
18
- /* } */
19
37
h1 ,
20
38
h2 ,
21
39
h3 {
28
46
}
29
47
h2 {
30
48
font-size : 40px ;
49
+ margin-bottom : 30px ;
31
50
}
32
51
h3 {
33
52
font-size : 30px ;
53
+ margin-bottom : 20px ;
54
+ margin-top : 40px ;
34
55
}
35
56
h4 {
36
57
font-size : 20px ;
40
61
p {
41
62
font-size : 22px ;
42
63
line-height : 1.5 ;
64
+ margin-bottom : 15px ;
65
+ }
66
+ ol ,
67
+ ul {
68
+ margin-left : 50px ;
69
+ margin-bottom : 20px ;
43
70
}
44
71
li {
45
72
font-size : 20px ;
73
+ margin-bottom : 10px ;
74
+ }
75
+ li : last-child {
76
+ margin-bottom : 0 ;
46
77
}
47
78
48
79
/* footer p {
65
96
.related {
66
97
list-style : none;
67
98
}
68
- .main-header {
69
- background-color : # f7f7f7 ;
70
- }
71
- aside {
72
- background-color : # f7f7f7 ;
73
- border-top : 5px solid # 1098ad ;
74
- border-bottom : 5px solid # 1098ad ;
75
- }
99
+
76
100
/* body {
77
101
background-color: orchid;
78
102
} */
@@ -125,6 +149,3 @@ a:active {
125
149
footer p {
126
150
color : orange;
127
151
}
128
- nav {
129
- font-size : 18px ;
130
- }
You can’t perform that action at this time.
0 commit comments