Skip to content

Commit 783d6e2

Browse files
committed
Completed Pseudo-elements
1 parent a131365 commit 783d6e2

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

myWork/03-CSS-Fundamentals/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<body>
1010
<div class="container">
1111
<header class="main-header">
12-
<h1 class="title-text">📘 The Code Magazine</h1>
12+
<h1 class="title-text">📘The Code Magazine</h1>
1313

1414
<nav>
1515
<a href="blog.html" target="_blank">Blog</a>

myWork/03-CSS-Fundamentals/style.css

+20
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ strong {
142142

143143
.article-header {
144144
font-size: 40px;
145+
146+
position: relative;
145147
}
146148

147149
.product-article {
@@ -163,3 +165,21 @@ strong {
163165
bottom: 0;
164166
right: 0;
165167
}
168+
169+
.title-text::first-letter {
170+
font-style: normal;
171+
}
172+
173+
.article-header::after {
174+
content: "TOP";
175+
background-color: #ffe70e;
176+
font-size: 12px;
177+
font-weight: bold;
178+
color: black;
179+
180+
display: inline-block;
181+
position: absolute;
182+
padding: 3px 7px;
183+
top: -5px;
184+
right: -5px;
185+
}

0 commit comments

Comments
 (0)