Skip to content

Commit a992abb

Browse files
committed
feat: add link style
1 parent 68b30a2 commit a992abb

File tree

2 files changed

+58
-3
lines changed

2 files changed

+58
-3
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>
@@ -77,7 +77,7 @@ <h3>What is HTML?</h3>
7777
<p>In HTML, each element is made up of 3 parts:</p>
7878

7979
<ol>
80-
<li>The opening tag</li>
80+
<li class="first-li">The opening tag</li>
8181
<li>The closing tag</li>
8282
<li>The actual element</li>
8383
</ol>
@@ -99,7 +99,9 @@ <h3>Why should you learn HTML?</h3>
9999
</p>
100100

101101
<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>
103105
<li>
104106
To hand-craft beautiful websites instead of relying on tools like
105107
Worpress or Wix

starter/03-CSS-Fundamentals/style.css

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ h3,
55
p,
66
li {
77
font-family: sans-serif;
8+
color: #444;
9+
}
10+
11+
h1,
12+
h2,
13+
h3 {
14+
color: #1098ad;
815
}
916

1017
h1 {
@@ -67,3 +74,49 @@ li {
6774
.related {
6875
list-style: none;
6976
}
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+
}

0 commit comments

Comments
 (0)