Skip to content

Commit f89c431

Browse files
committed
Combining Selector
1 parent b0ca7f0 commit f89c431

File tree

2 files changed

+28
-9
lines changed

2 files changed

+28
-9
lines changed

starter/CSS-Fundamentals/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ <h4>Related posts</h4>
119119
</ul>
120120
</aside>
121121

122-
<footer>Copyright &copy; 2027 by The Code Magazine.</footer>
122+
<footer>
123+
<p>
124+
Copyright &copy; 2027 by The Code Magazine.
125+
</footer>
126+
</p>
123127
</body>
124128

125129
</html>

starter/CSS-Fundamentals/style.css

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,50 @@
1+
h1,
2+
h2,
3+
h3,
4+
h4,
5+
p,
6+
li {
7+
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
8+
}
9+
110
h1 {
2-
/* color: blue; */
311
font-size: 24px;
4-
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
512
text-transform: uppercase;
6-
font-style: italic;
713
}
814

915
h2 {
1016
font-size: 40px;
11-
font-family: sans-serif;
1217
}
1318

1419
h3 {
1520
font-size: 30px;
16-
font-family: sans-serif;
1721
}
1822

1923
h3 {
2024
font-size: 20px;
21-
font-family: sans-serif;
2225
text-transform: uppercase;
2326
text-align: center;
2427
}
2528

2629
p {
2730
font-size: 22px;
28-
font-family: sans-serif;
2931
line-height: 1.5;
3032
}
3133

3234
li {
3335
font-size: 20px;
34-
font-family: sans-serif;
36+
}
37+
38+
/*
39+
Decendent Selector
40+
*/
41+
footer p {
42+
font-size: 16px;
43+
}
44+
45+
/*
46+
Decendent Selector
47+
*/
48+
article header p {
49+
font-style: italic;
3550
}

0 commit comments

Comments
 (0)