Skip to content

Commit c2ce03b

Browse files
committed
Initial CSS
1 parent 10de6bc commit c2ce03b

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

starter/03-CSS-Fundamentals/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<title>The Basic Language of the Web: HTML</title>
6+
<link rel="stylesheet" href="./style.css" />
67
</head>
78

89
<body>
@@ -141,6 +142,9 @@ <h4>Related posts</h4>
141142
</ul>
142143
</aside>
143144

144-
<footer>Copyright &copy; 2027 by The Code Magazine.</footer>
145+
<footer>
146+
<p>Copyright &copy; 2027 by The Code Magazine</p>
147+
.
148+
</footer>
145149
</body>
146150
</html>

starter/03-CSS-Fundamentals/style.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
h1,
2+
h2,
3+
h3,
4+
h4,
5+
p,
6+
li {
7+
font-family: sans-serif;
8+
}
9+
10+
h1 {
11+
font-size: 32px;
12+
line-height: 1.5;
13+
text-transform: uppercase;
14+
font-style: italic;
15+
}
16+
17+
h2 {
18+
font-size: 28px;
19+
20+
line-height: 1.5;
21+
text-transform: uppercase;
22+
}
23+
24+
h3 {
25+
font-size: 24px;
26+
27+
line-height: 1.5;
28+
text-transform: uppercase;
29+
}
30+
31+
h4 {
32+
font-size: 18px;
33+
line-height: 1.5;
34+
text-transform: uppercase;
35+
}
36+
37+
li {
38+
font-size: 18px;
39+
line-height: 1.5;
40+
}
41+
42+
p {
43+
font-size: 22px;
44+
line-height: 1.5;
45+
}
46+
47+
/* descendent selector, select paragraphs in footers and set it's font size to 16px */
48+
footer p {
49+
font-size: 16px;
50+
}

0 commit comments

Comments
 (0)