Skip to content

Commit 05eb0a6

Browse files
committed
A Few Additional CSS Stylings
1 parent 7dfc376 commit 05eb0a6

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

wip/03-CSS-Fundamentals/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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-posts-list">
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,13 +138,13 @@ <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

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

wip/03-CSS-Fundamentals/style.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,28 @@ li {
3131
font-size: 20px;
3232
}
3333

34-
/*Example of descendant selector*/
34+
/*Example of descendant selector
3535
footer p {
3636
font-size: 16px;
3737
}
38+
*/
3839

3940
/*ID selector. Don't use this anymore either.*/
4041
#author {
4142
font-style: italic;
43+
font-size: 18px;
44+
}
45+
46+
#copyright {
47+
font-size: 16px;
48+
}
49+
50+
/*Class selector*/
51+
.related-author {
52+
font-size: 18px;
53+
font-weight: bold;
54+
}
55+
56+
.related-posts-list {
57+
list-style: none;
4258
}

0 commit comments

Comments
 (0)