Skip to content

Commit 4eca96a

Browse files
committed
Ch. 28 - Pseudo-classes
1 parent fdccf5e commit 4eca96a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

starter/03-CSS-Fundamentals/style.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,29 @@ aside {
8686
/* body {
8787
background-color: blue;
8888
} */
89+
90+
li:first-child {
91+
font-weight: bold;
92+
}
93+
94+
li:last-child {
95+
font-style: italic;
96+
}
97+
98+
/*
99+
li:nth-child(2) {
100+
color: red;
101+
}
102+
103+
li:nth-child(odd) {
104+
color: red;
105+
}
106+
107+
li:nth-child(even) {
108+
color: red;
109+
}
110+
*/
111+
112+
/* article p:last-child {
113+
color: red;
114+
} */

0 commit comments

Comments
 (0)