Skip to content

Commit fdccf5e

Browse files
committed
Ch. 27 - Working With Colors
1 parent 609403d commit fdccf5e

File tree

3 files changed

+55
-1
lines changed

3 files changed

+55
-1
lines changed

starter/03-CSS-Fundamentals/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h5>The Basic Language of the Web: HTML</h5>
2727
<h6>The Basic Language of the Web: HTML</h6>
2828
-->
2929

30-
<header>
30+
<header class="main-header">
3131
<!--
3232
in-line css
3333
<h1 style="color: blue">📘 The Code Magazine</h1>

starter/03-CSS-Fundamentals/notes.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,36 @@ <h3>Why use classes over IDs?</h3>
6161
a single element.
6262
</p>
6363
</article>
64+
65+
<article>
66+
<h2>Ch. 27 Working with Colors</h2>
67+
<p>
68+
When multiple of the same style is applied to an element, the last one
69+
is taken (more later).
70+
</p>
71+
<p>
72+
It is an industry standard to represent a color using the hexidecimal
73+
model, or rgba if transparency (alpha) is desired.
74+
</p>
75+
<p>
76+
It is not reasonable to memorize or know many colors, instead, using a
77+
color picker is standard.
78+
</p>
79+
<p>
80+
VSCode has a built-in color picker that can be accessed by typing any
81+
hexidecimal value (#fff, for example), and then clicking this
82+
hexidecimal value.
83+
</p>
84+
<p>
85+
VSCode's color picker provides different models for values, which can
86+
be cycled through by clicking the value at the top of the color
87+
picker.
88+
</p>
89+
<p>
90+
A short-hand property is a special property that can be used to define
91+
multiple properties in a single declaration.
92+
</p>
93+
</article>
6494
</article>
6595
</body>
6696
</html>

starter/03-CSS-Fundamentals/style.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ h4,
3535
p,
3636
li {
3737
font-family: sans-serif;
38+
color: #444;
3839
}
3940

4041
/* footer p {
@@ -62,3 +63,26 @@ li {
6263
.related {
6364
list-style: none;
6465
}
66+
67+
h1,
68+
h2,
69+
h3 {
70+
color: #1098ad;
71+
}
72+
73+
.main-header {
74+
background-color: #f7f7f7;
75+
}
76+
77+
aside {
78+
background-color: #f7f7f7;
79+
/* border: 5px solid #1098ad; */
80+
/* border-left: 5px solid #1098ad; */
81+
/* border-right: 5px solid #1098ad; */
82+
border-top: 5px solid #1098ad;
83+
border-bottom: 5px solid #1098ad;
84+
}
85+
86+
/* body {
87+
background-color: blue;
88+
} */

0 commit comments

Comments
 (0)