Skip to content

Commit 4a61f65

Browse files
committed
Added: up to 3.41
1 parent 277b5d6 commit 4a61f65

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

ongoing/03-CSS-Fundamentals/index.html

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

5556
<p>

ongoing/03-CSS-Fundamentals/style.css

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

1415
.container {
1516
width: 800px;
1617
/*Both margins L & R auto center the page*/
1718
margin: 0 auto;
19+
position: relative;
1820
}
1921

2022
.main-header {
@@ -63,6 +65,7 @@ h1 {
6365
h2 {
6466
font-size: 40px;
6567
margin-bottom: 30px;
68+
position: relative;
6669
}
6770

6871
h3 {
@@ -180,3 +183,48 @@ a:active {
180183
181184
display: block;
182185
} */
186+
187+
nav a:link {
188+
margin-right: 30px;
189+
margin-top: 10px;
190+
display: inline-block;
191+
}
192+
193+
nav a:link:last-child {
194+
margin-right: 0;
195+
}
196+
197+
button {
198+
font-size: 22px;
199+
padding: 20px;
200+
cursor: pointer;
201+
202+
position: absolute;
203+
/* bottom: 50px;
204+
left: 50px; */
205+
bottom: 50px;
206+
right: 50px;
207+
}
208+
209+
h1::first-letter {
210+
font-style: normal;
211+
margin-right: 5px;
212+
}
213+
214+
/*Adjacent sibling*/
215+
/* h3 + p::first-line {
216+
color: red;
217+
} */
218+
219+
h2::after {
220+
content: "TOP";
221+
background-color: #ffe70e;
222+
color: #444;
223+
font-size: 16px;
224+
font-weight: bold;
225+
display: inline-block;
226+
padding: 5px 10px;
227+
position: absolute;
228+
top: -10px;
229+
right: -25px;
230+
}

0 commit comments

Comments
 (0)