Skip to content

Commit ecfea39

Browse files
committed
Cap. 27 (S3)
1 parent 6f3d309 commit ecfea39

File tree

2 files changed

+50
-7
lines changed

2 files changed

+50
-7
lines changed

ongoing/03-CSS-Fundamentals/index.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h5>The Basic Language of the Web: HTML</h5>
1616
<h6>The Basic Language of the Web: HTML</h6>
1717
-->
1818

19-
<header>
19+
<header class="main-header">
2020
<h1>📘 The Code Magazine</h1>
2121

2222
<nav>
@@ -38,7 +38,9 @@ <h2>The Basic Language of the Web: HTML</h2>
3838
width="50"
3939
/>
4040

41-
<p>Posted by <strong>Laura Jones</strong> on Monday, June 21st 2027</p>
41+
<p id="author">
42+
Posted by <strong>Laura Jones</strong> on Monday, June 21st 2027
43+
</p>
4244

4345
<img
4446
src="img/post-img.jpg"
@@ -113,7 +115,7 @@ <h3>Why should you learn HTML?</h3>
113115
<aside>
114116
<h4>Related posts</h4>
115117

116-
<ul>
118+
<ul class="related">
117119
<li>
118120
<img
119121
src="img/related-1.jpg"
@@ -122,12 +124,12 @@ <h4>Related posts</h4>
122124
width="75"
123125
/>
124126
<a href="#">How to Learn Web Development</a>
125-
<p>By Jonas Schmedtmann</p>
127+
<p class="related-author">By Jonas Schmedtmann</p>
126128
</li>
127129
<li>
128130
<img src="img/related-2.jpg" alt="Lightning" width="75" heigth="75" />
129131
<a href="#">The Unknown Powers of CSS</a>
130-
<p>By Jim Dillon</p>
132+
<p class="related-author">By Jim Dillon</p>
131133
</li>
132134
<li>
133135
<img
@@ -137,13 +139,13 @@ <h4>Related posts</h4>
137139
height="75"
138140
/>
139141
<a href="#">Why JavaScript is Awesome</a>
140-
<p>By Matilda</p>
142+
<p class="related-author">By Matilda</p>
141143
</li>
142144
</ul>
143145
</aside>
144146

145147
<footer>
146-
<p>Copyright &copy; 2027 by The Code Magazine.</p>
148+
<p id="copyright">Copyright &copy; 2027 by The Code Magazine.</p>
147149
</footer>
148150
</body>
149151
</html>

ongoing/03-CSS-Fundamentals/style.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ h4,
55
p,
66
li {
77
font-family: sans-serif;
8+
color: #444;
9+
}
10+
11+
h1,
12+
h2,
13+
h3 {
14+
color: #1098ad;
815
}
916

1017
h1 {
@@ -40,6 +47,40 @@ footer p {
4047
font-size: 16px;
4148
}
4249

50+
/*
4351
article header p {
4452
font-style: italic;
4553
}
54+
*/
55+
56+
#author {
57+
font-style: italic;
58+
font-size: 18px;
59+
}
60+
61+
#copyright {
62+
font-size: 16px;
63+
}
64+
65+
.related-author {
66+
font-size: 18px;
67+
font-weight: bold;
68+
}
69+
70+
/* ul {
71+
list-style: none;
72+
} */
73+
74+
.related {
75+
list-style: none;
76+
}
77+
78+
.main-header {
79+
background-color: #f7f7f7;
80+
}
81+
82+
aside {
83+
background-color: #f7f7f7;
84+
border-top: 5px solid #1098ad;
85+
border-bottom: 5px solid #1098ad;
86+
}

0 commit comments

Comments
 (0)