Skip to content

Commit e8f0b37

Browse files
committed
more CSS changes and classes
1 parent 9c12153 commit e8f0b37

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

03-CSS-Fundamentals/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h2>The Basic Language of the Web: HTML</h2>
3939
width="50"
4040
/>
4141

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

4444
<img
4545
src="img/post-img.jpg"
@@ -114,7 +114,7 @@ <h3>Why should you learn HTML?</h3>
114114
<aside>
115115
<h4>Related posts</h4>
116116

117-
<ul>
117+
<ul class="related">
118118
<li>
119119
<img
120120
src="img/related-1.jpg"
@@ -123,12 +123,12 @@ <h4>Related posts</h4>
123123
width="75"
124124
/>
125125
<a href="#">How to Learn Web Development</a>
126-
<p>By Jonas Schmedtmann</p>
126+
<p class="related-author">By Jonas Schmedtmann</p>
127127
</li>
128128
<li>
129129
<img src="img/related-2.jpg" alt="Lightning" width="75" heigth="75" />
130130
<a href="#">The Unknown Powers of CSS</a>
131-
<p>By Jim Dillon</p>
131+
<p class="related-author">By Jim Dillon</p>
132132
</li>
133133
<li>
134134
<img
@@ -138,11 +138,11 @@ <h4>Related posts</h4>
138138
height="75"
139139
/>
140140
<a href="#">Why JavaScript is Awesome</a>
141-
<p>By Matilda</p>
141+
<p class="related-author">By Matilda</p>
142142
</li>
143143
</ul>
144144
</aside>
145145

146-
<footer><p>Copyright &copy; 2027 by The Code Magazine.</p></footer>
146+
<footer><p id="copyright">Copyright &copy; 2027 by The Code Magazine.</p></footer>
147147
</body>
148148
</html>

03-CSS-Fundamentals/style.css

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,31 @@ p {
3131
/* not the ol/ul elements */
3232
li {
3333
font-size: 20px;
34+
3435
}
3536

3637
/* descendant selector */
37-
footer p {
38+
/* footer p {
39+
font-size: 16px;
40+
} */
41+
42+
#copyright {
3843
font-size: 16px;
3944
}
4045

41-
article header p {
46+
/* article header p {
4247
font-style: italic;
43-
}
48+
} */
49+
50+
#author {
51+
font-style:italic;
52+
}
53+
54+
.related-author {
55+
font-size: 18px;
56+
font-weight: bold;
57+
}
58+
59+
.related {
60+
list-style: none;
61+
}

0 commit comments

Comments
 (0)