File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed
starter/03-CSS-Fundamentals Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ <h3>What is HTML?</h3>
7878 < p > In HTML, each element is made up of 3 parts:</ p >
7979
8080 < ol >
81- < li > The opening tag</ li >
81+ < li class =" first-li " > The opening tag</ li >
8282 < li > The closing tag</ li >
8383 < li > The actual element</ li >
8484 </ ol >
@@ -100,7 +100,9 @@ <h3>Why should you learn HTML?</h3>
100100 </ p >
101101
102102 < ul >
103- < li > To be able to use the fundamental web dev language</ li >
103+ < li class ="first-li ">
104+ To be able to use the fundamental web dev language
105+ </ li >
104106 < li >
105107 To hand-craft beautiful websites instead of relying on tools like
106108 Worpress or Wix
Original file line number Diff line number Diff line change @@ -77,3 +77,23 @@ aside {
7777 border-top : 5px solid # 1098ad ;
7878 border-bottom : 5px solid # 1098ad ;
7979}
80+
81+ /* .first-li {
82+ font-weight: bold;
83+ } */
84+
85+ li : first-child {
86+ font-weight : bold;
87+ }
88+
89+ li : last-child {
90+ font-style : italic;
91+ }
92+
93+ li : nth-child (even) {
94+ color : red;
95+ }
96+
97+ article p : last-child {
98+ color : red;
99+ }
You can’t perform that action at this time.
0 commit comments