File tree Expand file tree Collapse file tree 2 files changed +32
-2
lines changed
starter/03-CSS-Fundamentals Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ <h6>The Basic Language of the Web: HTML</h6>
18
18
19
19
< div class ="container ">
20
20
< header class ="main-header ">
21
- < h1 > 📘 The Code Magazine</ h1 >
21
+ < h1 class =" website-title " > 📘 The Code Magazine</ h1 >
22
22
23
23
< nav >
24
24
<!-- <strong>This is navigation</strong> -->
@@ -31,7 +31,9 @@ <h1>📘 The Code Magazine</h1>
31
31
32
32
< article >
33
33
< header class ="post-header ">
34
- < h2 > The Basic Language of the Web: HTML</ h2 >
34
+ < h2 class ="post-title ">
35
+ The Basic Language of the Web: HTML
36
+ </ h2 >
35
37
36
38
< img
37
39
src ="img/laura-jones.jpg "
Original file line number Diff line number Diff line change @@ -231,6 +231,34 @@ nav a:link:last-child {
231
231
right : 50px ;
232
232
}
233
233
234
+ .website-title ::first-letter {
235
+ font-style : normal;
236
+ margin-right : 5px ;
237
+ }
238
+
239
+ /* Adjacent Sibling */
240
+ h3 + p ::first-line {
241
+ /* color: red; */
242
+ }
243
+
244
+ .post-title {
245
+ /* background-color: orange; */
246
+ position : relative;
247
+ }
248
+
249
+ .post-title ::before {
250
+ content : "TOP" ;
251
+ background-color : # ffe70e ;
252
+ color : # 444 ;
253
+ font-size : 16px ;
254
+ font-weight : bold;
255
+ display : inline-block;
256
+ padding : 5px 10px ;
257
+ position : absolute;
258
+ top : -15px ;
259
+ right : -25px ;
260
+ }
261
+
234
262
/* Resolving conflicts */
235
263
# copyright {
236
264
color : yellow;
You can’t perform that action at this time.
0 commit comments