Skip to content

Commit 06e90dd

Browse files
committed
Pseudo-elements
1 parent 5548ac1 commit 06e90dd

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

starter/03-CSS-Fundamentals/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ <h2>The Basic Language of the Web: HTML</h2>
4949
height="200"
5050
class="post-img"
5151
/>
52+
<button>💖Like</button>
5253
</header>
5354

5455
<p>

starter/03-CSS-Fundamentals/style.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ body {
99
color: #444;
1010
font-family: sans-serif;
1111
border-top: 10px solid #1098ad;
12+
position: relative;
1213
}
1314

1415
.container {
1516
width: 700px;
1617
margin: 0 auto;
18+
position: relative;
1719
}
1820
.main-header {
1921
background-color: #f7f7f7;
@@ -186,6 +188,15 @@ nav a:link {
186188
nav a:link:last-child {
187189
margin-right: 0;
188190
}
191+
192+
button {
193+
font-size: 22px;
194+
padding: 20px;
195+
cursor: pointer;
196+
position: absolute;
197+
bottom: 50px;
198+
right: 50px;
199+
}
189200
/* Resolving conflicts */
190201

191202
/* #copyright {

0 commit comments

Comments
 (0)