Skip to content

Commit fdb5135

Browse files
committed
Working With Colors
1 parent 80595fc commit fdb5135

File tree

2 files changed

+47
-10
lines changed

2 files changed

+47
-10
lines changed

starter/03-CSS-Fundamentals/index.html

Lines changed: 10 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>
@@ -25,6 +25,7 @@ <h1>📘 The Code Magazine</h1>
2525
<a href="#">Flexbox</a>
2626
<a href="#">CSS Grid</a>
2727
</nav>
28+
<p>Test Paragraph</p>
2829
</header>
2930

3031
<article>
@@ -38,7 +39,9 @@ <h2>The Basic Language of the Web: HTML</h2>
3839
width="50"
3940
/>
4041

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

4346
<img
4447
src="img/post-img.jpg"
@@ -113,7 +116,7 @@ <h3>Why should you learn HTML?</h3>
113116
<aside>
114117
<h4>Related posts</h4>
115118

116-
<ul>
119+
<ul class="related">
117120
<li>
118121
<img
119122
src="img/related-1.jpg"
@@ -122,12 +125,12 @@ <h4>Related posts</h4>
122125
width="75"
123126
/>
124127
<a href="#">How to Learn Web Development</a>
125-
<p>By Jonas Schmedtmann</p>
128+
<p class="related-author">By Jonas Schmedtmann</p>
126129
</li>
127130
<li>
128131
<img src="img/related-2.jpg" alt="Lightning" width="75" heigth="75" />
129132
<a href="#">The Unknown Powers of CSS</a>
130-
<p>By Jim Dillon</p>
133+
<p class="related-author">By Jim Dillon</p>
131134
</li>
132135
<li>
133136
<img
@@ -137,13 +140,13 @@ <h4>Related posts</h4>
137140
height="75"
138141
/>
139142
<a href="#">Why JavaScript is Awesome</a>
140-
<p>By Matilda</p>
143+
<p class="related-author">By Matilda</p>
141144
</li>
142145
</ul>
143146
</aside>
144147

145148
<footer>
146-
<p>Copyright &copy; 2027 by The Code Magazine.</p>
149+
<p id="copyright">Copyright &copy; 2027 by The Code Magazine.</p>
147150
</footer>
148151
</body>
149152
</html>

starter/03-CSS-Fundamentals/style.css

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@ h4,
55
p,
66
li {
77
font-family: sans-serif;
8+
color: #444;
89
}
910

11+
h1,
12+
h2,
13+
h3 {
14+
color: #1098ad;
15+
}
1016
h1 {
1117
font-size: 26px;
1218
text-transform: uppercase;
@@ -36,10 +42,38 @@ li {
3642
font-size: 20px;
3743
}
3844

39-
footer p {
45+
/* footer p {
4046
font-size: 16px;
41-
}
42-
47+
} */
48+
/*
4349
article header p {
4450
font-style: italic;
4551
}
52+
*/
53+
#author {
54+
font-size: 18px;
55+
font-style: italic;
56+
}
57+
58+
#copyright {
59+
font-size: 16px;
60+
}
61+
62+
.related-author {
63+
font-size: 18px;
64+
font-weight: bold;
65+
}
66+
67+
.related {
68+
list-style: none;
69+
}
70+
71+
.main-header {
72+
background-color: #f7f7f7;
73+
}
74+
75+
aside {
76+
background-color: #f7f7f7;
77+
border-top: 5px solid #1098ad;
78+
border-bottom: 5px solid #1098ad;
79+
}

0 commit comments

Comments
 (0)