Skip to content

Commit ca48e91

Browse files
committed
Added some basic CSS
1 parent 2c8826f commit ca48e91

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed

wip/03-CSS-Fundamentals/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ <h1>📘 The Code Magazine</h1>
2525
<a href="#">Flexbox</a>
2626
<a href="#">CSS Grid</a>
2727
</nav>
28+
2829
</header>
2930

3031
<article>
@@ -142,6 +143,8 @@ <h4>Related posts</h4>
142143
</ul>
143144
</aside>
144145

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

wip/03-CSS-Fundamentals/style.css

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,42 @@
1+
h1, h2, h3, h4, p, li {
2+
font-family: sans-serif;
3+
}
4+
15
h1 {
2-
color: blue;
36
font-size: 26px;
7+
text-transform: uppercase;
8+
font-style: italic;
9+
}
10+
11+
h2 {
12+
font-size: 40px;
13+
}
14+
15+
h3 {
16+
font-size: 30px;
17+
}
18+
19+
h4 {
20+
font-size: 20px;
21+
text-transform: uppercase;
22+
text-align: center;
23+
}
24+
25+
p {
26+
font-size: 22px; /*Default size is 16px*/
27+
line-height: 1.5;
28+
}
29+
30+
li {
31+
font-size: 20px;
32+
}
33+
34+
/*Example of descendant selector*/
35+
footer p {
36+
font-size: 16px;
37+
}
38+
39+
/*Example of nested descendant selector*/
40+
article header p {
41+
font-style: italic;
442
}

0 commit comments

Comments
 (0)