File tree Expand file tree Collapse file tree 2 files changed +58
-3
lines changed
starter/03-CSS-Fundamentals Expand file tree Collapse file tree 2 files changed +58
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ <h5>The Basic Language of the Web: HTML</h5>
16
16
<h6>The Basic Language of the Web: HTML</h6>
17
17
-->
18
18
19
- < header >
19
+ < header class =" main-header " >
20
20
< h1 > 📘 The Code Magazine</ h1 >
21
21
22
22
< nav >
@@ -77,7 +77,7 @@ <h3>What is HTML?</h3>
77
77
< p > In HTML, each element is made up of 3 parts:</ p >
78
78
79
79
< ol >
80
- < li > The opening tag</ li >
80
+ < li class =" first-li " > The opening tag</ li >
81
81
< li > The closing tag</ li >
82
82
< li > The actual element</ li >
83
83
</ ol >
@@ -99,7 +99,9 @@ <h3>Why should you learn HTML?</h3>
99
99
</ p >
100
100
101
101
< ul >
102
- < li > To be able to use the fundamental web dev language</ li >
102
+ < li class ="first-li ">
103
+ To be able to use the fundamental web dev language
104
+ </ li >
103
105
< li >
104
106
To hand-craft beautiful websites instead of relying on tools like
105
107
Worpress or Wix
Original file line number Diff line number Diff line change 5
5
p ,
6
6
li {
7
7
font-family : sans-serif;
8
+ color : # 444 ;
9
+ }
10
+
11
+ h1 ,
12
+ h2 ,
13
+ h3 {
14
+ color : # 1098ad ;
8
15
}
9
16
10
17
h1 {
67
74
.related {
68
75
list-style : none;
69
76
}
77
+
78
+ .main-header {
79
+ background-color : # f7f7f7 ;
80
+ }
81
+
82
+ aside {
83
+ background-color : # f7f7f7 ;
84
+ border-top : 5px solid # 1098ad ;
85
+ border-bottom : 5px solid # 1098ad ;
86
+ }
87
+
88
+ /* .first-li {
89
+ font-weight: bold;
90
+ } */
91
+
92
+ li : first-child {
93
+ font-weight : bold;
94
+ }
95
+
96
+ li : last-child {
97
+ font-style : italic;
98
+ }
99
+
100
+ li : nth-child (2 ) {
101
+ /* color: red; */
102
+ }
103
+
104
+ a : link {
105
+ color : # 1098ad ;
106
+ text-decoration : none;
107
+ }
108
+
109
+ a : visited {
110
+ color : # 1098ad ;
111
+ }
112
+
113
+ a : hover {
114
+ color : orangered;
115
+ font-weight : bold;
116
+ text-decoration : underline orangered;
117
+ }
118
+
119
+ a : active {
120
+ background-color : black;
121
+ font-style : italic;
122
+ }
You can’t perform that action at this time.
0 commit comments