Skip to content

Commit 4a1da3e

Browse files
committed
section-3: Added like button and "TOP" element.
1 parent 25ab891 commit 4a1da3e

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

starter/03-CSS-Fundamentals/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ <h2>The Basic Language of the Web: HTML</h2>
4949
width="500"
5050
height="200"
5151
/>
52+
53+
<button>❤️ Like</button>
5254
</header>
5355

5456
<p>

starter/03-CSS-Fundamentals/style.css

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ body {
1313
border-top: 10px solid #1098ad;
1414
color: #444444;
1515
font-family: sans-serif;
16+
position: relative;
1617
}
1718

1819
article {
@@ -29,9 +30,28 @@ h1 {
2930
text-transform: uppercase;
3031
}
3132

33+
h1::first-letter {
34+
font-style: normal;
35+
margin-right: 5px;
36+
}
37+
3238
h2 {
3339
font-size: 40px;
3440
margin-bottom: 30px;
41+
position: relative;
42+
}
43+
44+
h2::after {
45+
background-color: #ffe70e;
46+
color: #444444;
47+
content: "TOP";
48+
display: inline-block;
49+
font-size: 16px;
50+
font-weight: bold;
51+
padding: 5px 10px;
52+
position: absolute;
53+
right: -25px;
54+
top: -10px;
3555
}
3656

3757
h3 {
@@ -51,6 +71,10 @@ p {
5171
margin-bottom: 50px;
5272
}
5373

74+
h3 + p::first-line {
75+
/* color: red */
76+
}
77+
5478
ul, ol {
5579
margin-left: 50px;
5680
margin-bottom: 20px;
@@ -123,6 +147,15 @@ nav {
123147
font-size: 18px;
124148
}
125149

150+
button {
151+
bottom: 50px;
152+
cursor: pointer;
153+
font-size: 22px;
154+
padding: 20px;
155+
position: absolute;
156+
right: 50px;
157+
}
158+
126159
/* ul {
127160
list-style: none;
128161
} */
@@ -146,6 +179,7 @@ nav {
146179

147180
.container {
148181
margin: 0 auto;
182+
/* position: relative; */
149183
width: 800px;
150184
}
151185

0 commit comments

Comments
 (0)