File tree Expand file tree Collapse file tree 2 files changed +29
-9
lines changed
starter/03-CSS-Fundamentals Expand file tree Collapse file tree 2 files changed +29
-9
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ <h2>The Basic Language of the Web: HTML</h2>
38
38
width ="50 "
39
39
/>
40
40
41
- < p >
41
+ <!-- using ids is not a good practice -->
42
+ < p id ="author ">
42
43
Posted by < strong > Laura Jones</ strong > on Monday, June 21st
43
44
2027
44
45
</ p >
@@ -116,7 +117,7 @@ <h3>Why should you learn HTML?</h3>
116
117
< aside >
117
118
< h4 > Related posts</ h4 >
118
119
119
- < ul >
120
+ < ul class =" related " >
120
121
< li >
121
122
< img
122
123
src ="img/related-1.jpg "
@@ -125,7 +126,7 @@ <h4>Related posts</h4>
125
126
width ="75 "
126
127
/>
127
128
< a href ="# "> How to Learn Web Development</ a >
128
- < p > By Jonas Schmedtmann</ p >
129
+ < p class =" related-author " > By Jonas Schmedtmann</ p >
129
130
</ li >
130
131
< li >
131
132
< img
@@ -135,7 +136,7 @@ <h4>Related posts</h4>
135
136
heigth ="75 "
136
137
/>
137
138
< a href ="# "> The Unknown Powers of CSS</ a >
138
- < p > By Jim Dillon</ p >
139
+ < p class =" related-author " > By Jim Dillon</ p >
139
140
</ li >
140
141
< li >
141
142
< img
@@ -145,13 +146,14 @@ <h4>Related posts</h4>
145
146
height ="75 "
146
147
/>
147
148
< a href ="# "> Why JavaScript is Awesome</ a >
148
- < p > By Matilda</ p >
149
+ < p class =" related-author " > By Matilda</ p >
149
150
</ li >
150
151
</ ul >
151
152
</ aside >
152
153
153
154
< footer >
154
- < p > Copyright © 2027 by The Code Magazine.</ p >
155
+ <!-- using ids is not a good practice -->
156
+ < p id ="copyright "> Copyright © 2027 by The Code Magazine.</ p >
155
157
</ footer >
156
158
</ body >
157
159
</ html >
Original file line number Diff line number Diff line change 42
42
}
43
43
44
44
/* css descendants are actually a bad practice */
45
- footer p {
45
+ /* footer p {
46
46
font-size: 16px;
47
- }
47
+ } */
48
48
49
49
/* css descendants are actually a bad practice */
50
- article header p {
50
+ /* article header p {
51
+ font-style: italic;
52
+ } */
53
+
54
+ # author {
51
55
font-style : italic;
56
+ font-size : 18px ;
57
+ }
58
+
59
+ # copyright {
60
+ font-size : 16px ;
61
+ }
62
+
63
+ .related-author {
64
+ font-size : 18px ;
65
+ font-weight : bold;
66
+ }
67
+
68
+ .related {
69
+ list-style : none;
52
70
}
You can’t perform that action at this time.
0 commit comments