File tree Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ <h3>Why should you learn HTML?</h3>
114
114
< aside >
115
115
< h4 > Related posts</ h4 >
116
116
117
- < ul >
117
+ < ul class =" related-posts-list " >
118
118
< li >
119
119
< img
120
120
src ="img/related-1.jpg "
@@ -123,12 +123,12 @@ <h4>Related posts</h4>
123
123
width ="75 "
124
124
/>
125
125
< a href ="# "> How to Learn Web Development</ a >
126
- < p > By Jonas Schmedtmann</ p >
126
+ < p class =" related-author " > By Jonas Schmedtmann</ p >
127
127
</ li >
128
128
< li >
129
129
< img src ="img/related-2.jpg " alt ="Lightning " width ="75 " heigth ="75 " />
130
130
< a href ="# "> The Unknown Powers of CSS</ a >
131
- < p > By Jim Dillon</ p >
131
+ < p class =" related-author " > By Jim Dillon</ p >
132
132
</ li >
133
133
< li >
134
134
< img
@@ -138,13 +138,13 @@ <h4>Related posts</h4>
138
138
height ="75 "
139
139
/>
140
140
< a href ="# "> Why JavaScript is Awesome</ a >
141
- < p > By Matilda</ p >
141
+ < p class =" related-author " > By Matilda</ p >
142
142
</ li >
143
143
</ ul >
144
144
</ aside >
145
145
146
146
< footer >
147
- < p > Copyright © 2027 by The Code Magazine.</ p >
147
+ < p id =" copyright " > Copyright © 2027 by The Code Magazine.</ p >
148
148
</ footer >
149
149
</ body >
150
150
</ html >
Original file line number Diff line number Diff line change 31
31
font-size : 20px ;
32
32
}
33
33
34
- /*Example of descendant selector*/
34
+ /*Example of descendant selector
35
35
footer p {
36
36
font-size: 16px;
37
37
}
38
+ */
38
39
39
40
/*ID selector. Don't use this anymore either.*/
40
41
# author {
41
42
font-style : italic;
43
+ font-size : 18px ;
44
+ }
45
+
46
+ # copyright {
47
+ font-size : 16px ;
48
+ }
49
+
50
+ /*Class selector*/
51
+ .related-author {
52
+ font-size : 18px ;
53
+ font-weight : bold;
54
+ }
55
+
56
+ .related-posts-list {
57
+ list-style : none;
42
58
}
You can’t perform that action at this time.
0 commit comments