Skip to content

Commit 80595fc

Browse files
committed
Combining Selectors
1 parent 7bd5d82 commit 80595fc

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

starter/03-CSS-Fundamentals/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ <h4>Related posts</h4>
142142
</ul>
143143
</aside>
144144

145-
<footer>Copyright &copy; 2027 by The Code Magazine.</footer>
145+
<footer>
146+
<p>Copyright &copy; 2027 by The Code Magazine.</p>
147+
</footer>
146148
</body>
147149
</html>
Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,45 @@
1+
h1,
2+
h2,
3+
h3,
4+
h4,
5+
p,
6+
li {
7+
font-family: sans-serif;
8+
}
9+
110
h1 {
211
font-size: 26px;
3-
font-family: sans-serif;
412
text-transform: uppercase;
513
font-style: italic;
614
}
715

816
h2 {
917
font-size: 40px;
10-
font-family: sans-serif;
1118
}
1219

1320
h3 {
1421
font-size: 30px;
15-
font-family: sans-serif;
1622
}
1723

1824
h4 {
1925
font-size: 20px;
20-
font-family: sans-serif;
26+
2127
text-transform: uppercase;
2228
text-align: center;
2329
}
2430
p {
2531
font-size: 22px;
26-
font-family: sans-serif;
2732
line-height: 1.5;
2833
}
2934

3035
li {
3136
font-size: 20px;
32-
font-family: sans-serif;
37+
}
38+
39+
footer p {
40+
font-size: 16px;
41+
}
42+
43+
article header p {
44+
font-style: italic;
3345
}

0 commit comments

Comments
 (0)