Skip to content

Commit 037b12f

Browse files
committed
base css
1 parent c78bfed commit 037b12f

File tree

2 files changed

+44
-13
lines changed

2 files changed

+44
-13
lines changed

my_solution/03-CSS-Fundamentals/index.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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="auther">
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="no-bullet-points">
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,11 +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

145-
<footer>Copyright &copy; 2027 by The Code Magazine.</footer>
147+
<footer>
148+
<p id="copyright">Copyright &copy; 2027 by The Code Magazine.</p>
149+
</footer>
146150
</body>
147151
</html>
Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,67 @@
1+
h1,
2+
h2,
3+
h3,
4+
h4,
5+
p,
6+
li {
7+
font-family: sans-serif;
8+
}
9+
110
h1 {
211
color: blue;
312
font-size: 26px;
4-
font-family: sans-serif;
513
text-transform: uppercase;
614
font-style: italic;
715
}
816

917
h2 {
1018
font-size: 40px;
11-
font-family: sans-serif;
1219
}
1320

1421
h3 {
1522
font-size: 30px;
16-
font-family: sans-serif;
1723
}
1824

1925
h4 {
2026
font-size: 20px;
21-
font-family: sans-serif;
2227
text-transform: uppercase;
2328
text-align: center;
2429
}
2530

2631
h4 {
2732
font-size: 20px;
28-
font-family: sans-serif;
2933
}
3034

3135
p {
3236
font-size: 22px;
33-
font-family: sans-serif;
3437
line-height: 1.5;
3538
}
3639

3740
li {
3841
font-size: 20px;
39-
font-family: sans-serif;
4042
}
43+
44+
.no-bullet-points {
45+
list-style: none;
46+
}
47+
48+
.related-author {
49+
font-size: 18px;
50+
font-weight: bold;
51+
}
52+
53+
/* footer p {
54+
font-size: 16px;
55+
} */
56+
#copyright {
57+
font-size: 16px;
58+
}
59+
60+
#auther {
61+
font-style: italic;
62+
font-size: 18px;
63+
}
64+
65+
/* header p {
66+
font-style: italic;
67+
} */

0 commit comments

Comments
 (0)