Skip to content

Commit 8c5c3ad

Browse files
1 parent ac4e3db commit 8c5c3ad

File tree

2 files changed

+89
-9
lines changed

2 files changed

+89
-9
lines changed

starter/03-CSS-Fundamentals/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h5>The Basic Language of the Web: HTML</h5>
1616
<h6>The Basic Language of the Web: HTML</h6>
1717
-->
1818

19-
<header>
19+
<header class="main-header">
2020
<h1>📘 The Code Magazine</h1>
2121

2222
<nav>
@@ -80,7 +80,7 @@ <h3>What is HTML?</h3>
8080
<p>In HTML, each element is made up of 3 parts:</p>
8181

8282
<ol>
83-
<li>The opening tag</li>
83+
<li class="first-li">The opening tag</li>
8484
<li>The closing tag</li>
8585
<li>The actual element</li>
8686
</ol>
@@ -102,7 +102,9 @@ <h3>Why should you learn HTML?</h3>
102102
</p>
103103

104104
<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>
106108
<li>
107109
To hand-craft beautiful websites instead of relying on tools like
108110
Worpress or Wix

starter/03-CSS-Fundamentals/style.css

Lines changed: 84 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,36 @@
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,
225
h2,
326
h3,
427
h4,
528
p,
629
li {
730
font-family: sans-serif;
31+
color: #444;
832
}
9-
33+
*/
1034
h1,
1135
h2,
1236
h3 {
@@ -72,9 +96,63 @@ li {
7296
list-style: none;
7397
}
7498

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 {
78156
color: red;
79157
}
80158
@@ -87,6 +165,6 @@ Resolving conflicts
87165
}
88166
89167
footer p {
90-
color: green;
168+
color: green !important;
91169
}
92170
*/

0 commit comments

Comments
 (0)