File tree Expand file tree Collapse file tree 4 files changed +38
-10
lines changed
starter/03-CSS-Fundamentals Expand file tree Collapse file tree 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>
3434 -->
3535 <h1>📘 The Code Magazine</h1>
3636 <nav>
37+ <!-- <strong>this is a parapgraph</strong> -->
3738 <a href="blog.html">Blog</a>
3839 <a href="#">Challenges</a>
3940 <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>
148148 to lowest priority read from left to right.
149149 </p>
150150 </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>
151168 </article>
152169 </body>
153170</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+
111h1 {
212 /* color: blue; */
313 font-size: 26px;
2838 font-size: 20px;
2939}
3040
31- h1,
32- h2,
33- h3,
34- h4,
35- p,
36- li {
37- font-family: sans-serif;
38- color: #444;
39- }
40-
4141/* footer p {
4242 font-size: 16px;
4343} */
@@ -148,3 +148,13 @@ a:active {
148148footer p {
149149 color: green !important;
150150} */
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