Skip to content

Commit 753e58b

Browse files
committed
pseudo elements
1 parent 06e90dd commit 753e58b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

starter/03-CSS-Fundamentals/style.css

+27
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,33 @@ button {
197197
bottom: 50px;
198198
right: 50px;
199199
}
200+
201+
h1::first-letter {
202+
font-style: normal;
203+
margin-right: 5px;
204+
}
205+
206+
/* p::first-line {
207+
color: pink;
208+
} */
209+
h3 + p::first-line {
210+
color: pink;
211+
}
212+
213+
h2 {
214+
/* background-color: orange; */
215+
position: relative;
216+
}
217+
h2::after {
218+
content: "TOP";
219+
color: #444;
220+
font-size: 16px;
221+
background-color: yellow;
222+
padding: 5px 10px;
223+
position: absolute;
224+
top: -10px;
225+
right: -25px;
226+
}
200227
/* Resolving conflicts */
201228

202229
/* #copyright {

0 commit comments

Comments
 (0)