File tree Expand file tree Collapse file tree 2 files changed +28
-10
lines changed
starter/03-CSS-Fundamentals Expand file tree Collapse file tree 2 files changed +28
-10
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ <h2>The Basic Language of the Web: HTML</h2>
39
39
width ="50 "
40
40
/>
41
41
42
- < p > Posted by < strong > Laura Jones</ strong > on Monday, June 21st 2027</ p >
42
+ < p id ="author ">
43
+ Posted by < strong > Laura Jones</ strong > on Monday, June 21st 2027
44
+ </ p >
43
45
44
46
< img
45
47
src ="img/post-img.jpg "
@@ -114,7 +116,7 @@ <h3>Why should you learn HTML?</h3>
114
116
< aside >
115
117
< h4 > Related posts</ h4 >
116
118
117
- < ul >
119
+ < ul class =" related " >
118
120
< li >
119
121
< img
120
122
src ="img/related-1.jpg "
@@ -123,12 +125,12 @@ <h4>Related posts</h4>
123
125
width ="75 "
124
126
/>
125
127
< a href ="# "> How to Learn Web Development</ a >
126
- < p > By Jonas Schmedtmann</ p >
128
+ < p class =" related-author " > By Jonas Schmedtmann</ p >
127
129
</ li >
128
130
< li >
129
131
< img src ="img/related-2.jpg " alt ="Lightning " width ="75 " heigth ="75 " />
130
132
< a href ="# "> The Unknown Powers of CSS</ a >
131
- < p > By Jim Dillon</ p >
133
+ < p class =" related-author " > By Jim Dillon</ p >
132
134
</ li >
133
135
< li >
134
136
< img
@@ -138,13 +140,13 @@ <h4>Related posts</h4>
138
140
height ="75 "
139
141
/>
140
142
< a href ="# "> Why JavaScript is Awesome</ a >
141
- < p > By Matilda</ p >
143
+ < p class =" related-author " > By Matilda</ p >
142
144
</ li >
143
145
</ ul >
144
146
</ aside >
145
147
146
148
< footer >
147
- < p > Copyright © 2027 by The Code Magazine.</ p >
149
+ < p id =" copyright " > Copyright © 2027 by The Code Magazine.</ p >
148
150
</ footer >
149
151
</ body >
150
152
</ html >
Original file line number Diff line number Diff line change 37
37
}
38
38
39
39
/* * Descendent Selecter */
40
- footer p {
40
+ /* footer p {
41
41
font-size: 16px;
42
- }
42
+ } */
43
+ /* article header p {
44
+ font-style: italic;
45
+ } */
43
46
44
- /* * Nested Descendent Selecter */
45
- article header p {
47
+ /* * ID Selector: (Don't use this) */
48
+ # author {
46
49
font-style : italic;
50
+ font-size : 18px ;
51
+ }
52
+ # copyright {
53
+ font-size : 16px ;
54
+ }
55
+
56
+ /* * Class Selector: (Use this instead) */
57
+ .related-author {
58
+ font-size : 18px ;
59
+ font-weight : bold;
60
+ }
61
+ .related {
62
+ list-style : none;
47
63
}
You can’t perform that action at this time.
0 commit comments