File tree 4 files changed +38
-10
lines changed
starter/03-CSS-Fundamentals
4 files changed +38
-10
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ <h1 style="color: blue">📘 The Code Magazine</h1>
34
34
-->
35
35
< h1 > 📘 The Code Magazine</ h1 >
36
36
< nav >
37
+ <!-- <strong>this is a parapgraph</strong> -->
37
38
< a href ="blog.html "> Blog</ a >
38
39
< a href ="# "> Challenges</ a >
39
40
< a href ="# "> Flexbox</ a >
Original file line number Diff line number Diff line change @@ -148,6 +148,23 @@ <h2>Ch. 31 CSS Theory #1: Conflicts Between Selectors</h2>
148
148
to lowest priority read from left to right.
149
149
</ p >
150
150
</ article >
151
+
152
+ < article >
153
+ < h2 > Ch. 32 CSS Theory #2: Inheritance and the Universal Selector</ h2 >
154
+ < p >
155
+ An inherited property is very easily overwritten by any rule which has
156
+ a value for that same property.
157
+ </ p >
158
+ < p >
159
+ Inheritance does not conflict with other selectors, rather,
160
+ inheritance works by applying styles to all child elements.
161
+ </ p >
162
+ < img src ="img/how_inheritance_works.png " />
163
+ < p >
164
+ By contrast, the universal selector applies to every element, and thus
165
+ can conflict with other selectors.
166
+ </ p >
167
+ </ article >
151
168
</ article >
152
169
</ body >
153
170
</ html >
Original file line number Diff line number Diff line change
1
+ /* * {
2
+ border-top: 10px solid #1098ad;
3
+ } */
4
+
5
+ body {
6
+ color : # 444 ;
7
+ font-family : sans-serif;
8
+ /* border-top: 10px solid #1098ad; */
9
+ }
10
+
1
11
h1 {
2
12
/* color: blue; */
3
13
font-size : 26px ;
28
38
font-size : 20px ;
29
39
}
30
40
31
- h1 ,
32
- h2 ,
33
- h3 ,
34
- h4 ,
35
- p ,
36
- li {
37
- font-family : sans-serif;
38
- color : # 444 ;
39
- }
40
-
41
41
/* footer p {
42
42
font-size: 16px;
43
43
} */
@@ -148,3 +148,13 @@ a:active {
148
148
footer p {
149
149
color: green !important;
150
150
} */
151
+
152
+ /* nav a:link,
153
+ nav strong {
154
+ font-size: 18px;
155
+ } */
156
+
157
+ /* nav {
158
+ font-size: 18px;
159
+ }
160
+ */
You can’t perform that action at this time.
0 commit comments