File tree 2 files changed +89
-9
lines changed
starter/03-CSS-Fundamentals
2 files changed +89
-9
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 >
@@ -80,7 +80,7 @@ <h3>What is HTML?</h3>
80
80
< p > In HTML, each element is made up of 3 parts:</ p >
81
81
82
82
< ol >
83
- < li > The opening tag</ li >
83
+ < li class =" first-li " > The opening tag</ li >
84
84
< li > The closing tag</ li >
85
85
< li > The actual element</ li >
86
86
</ ol >
@@ -102,7 +102,9 @@ <h3>Why should you learn HTML?</h3>
102
102
</ p >
103
103
104
104
< ul >
105
- < li > To be able to use the fundamental web dev language</ li >
105
+ < li class ="first-li ">
106
+ To be able to use the fundamental web dev language
107
+ </ li >
106
108
< li >
107
109
To hand-craft beautiful websites instead of relying on tools like
108
110
Worpress or Wix
Original file line number Diff line number Diff line change 1
- h1 ,
1
+ /* * {
2
+ border-top: 5px solid #1098ad;
3
+ }
4
+ */
5
+ body {
6
+ color : # 444 ;
7
+ font-family : sans-serif;
8
+ }
9
+
10
+ .main-header {
11
+ background-color : # f7f7f7 ;
12
+ /* padding: 20px;
13
+ padding-left: 40px;
14
+ padding-right: 40px; */
15
+ padding : 20px 40px ;
16
+ }
17
+
18
+ aside {
19
+ background-color : # f7f7f7 ;
20
+ border-top : 5px solid # 1098ad ;
21
+ border-bottom : 5px solid # 1098ad ;
22
+ }
23
+
24
+ /* h1,
2
25
h2,
3
26
h3,
4
27
h4,
5
28
p,
6
29
li {
7
30
font-family: sans-serif;
31
+ color: #444;
8
32
}
9
-
33
+ */
10
34
h1 ,
11
35
h2 ,
12
36
h3 {
72
96
list-style : none;
73
97
}
74
98
75
- /*
76
- Resolving conflicts
77
- #copyright {
99
+ /* header {
100
+ background-color: #f7f7f7;
101
+ }
102
+ */
103
+
104
+ /* body {
105
+ background-color: aquamarine;
106
+ }
107
+
108
+ .first-li {
109
+ font-weight: bold;
110
+ } */
111
+
112
+ li : first-child {
113
+ font-weight : bold;
114
+ }
115
+
116
+ li : last-child {
117
+ font-style : italic;
118
+ }
119
+
120
+ li : nth-child (2 ) {
121
+ /*odd- even
122
+ color: red; */
123
+ }
124
+
125
+ /* Misconception: This won't work */
126
+
127
+ article p : first-child {
128
+ color : red;
129
+ }
130
+
131
+ /* Styling links order LVHA*/
132
+
133
+ a : link {
134
+ color : # 1098ad ;
135
+ text-decoration : none;
136
+ }
137
+
138
+ a : visited {
139
+ /*color: #777; */
140
+ color : # 1098ad ;
141
+ }
142
+
143
+ a : hover {
144
+ color : orangered;
145
+ font-weight : bold;
146
+ text-decoration : underline /*dotted- wavy*/ orangered;
147
+ }
148
+
149
+ a : active {
150
+ background-color : black;
151
+ font-style : italic;
152
+ }
153
+
154
+ /* Resolving conflicts */
155
+ /* #copyright {
78
156
color: red;
79
157
}
80
158
@@ -87,6 +165,6 @@ Resolving conflicts
87
165
}
88
166
89
167
footer p {
90
- color: green;
168
+ color: green !important ;
91
169
}
92
170
*/
You can’t perform that action at this time.
0 commit comments