Skip to content

Commit b728eb2

Browse files
committed
section-3: Inheritance notes.
1 parent a780324 commit b728eb2

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

starter/03-CSS-Fundamentals/style.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
h1, h2, h3, h4, p, li {
1+
/* Universal selector. No inheritance. */
2+
* {
3+
/* border-top: 10px solid *1098ad; */
4+
}
5+
6+
/*
7+
Not all properties are inherited.
8+
Mostly ones related to text.
9+
*/
10+
body {
11+
border-top: 10px solid #1098ad;
212
color: #444444;
313
font-family: sans-serif;
414
}
@@ -75,6 +85,14 @@ a:active {
7585
font-style: italic;
7686
}
7787

88+
/* nav a:link {
89+
font-size: 18px;
90+
} */
91+
92+
nav {
93+
font-size: 18px;
94+
}
95+
7896
/* ul {
7997
list-style: none;
8098
} */

0 commit comments

Comments
 (0)