Skip to content

Commit f7ad4df

Browse files
committed
centered the navbar options
1 parent c5de468 commit f7ad4df

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

starter/03-CSS-Fundamentals/style.css

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ h1 {
4242
}
4343

4444
h2 {
45-
font-size: 40px;
45+
font-size: 30px;
4646
margin-bottom: 30px;
47+
position: relative;
4748
}
4849

4950
h3 {
@@ -172,6 +173,7 @@ a:active {
172173

173174
nav {
174175
font-size: 18px;
176+
text-align: center;
175177
}
176178

177179
.post-pic {
@@ -196,3 +198,29 @@ nav a:link {
196198
bottom: 0;
197199
right: 0;
198200
}
201+
202+
h1::first-letter {
203+
font-style: normal;
204+
margin-right: 5px;
205+
}
206+
207+
p::first-line {
208+
/* color: red; */
209+
}
210+
211+
h3 + p::first-line {
212+
/* color: red; */
213+
}
214+
215+
h2::after {
216+
content: "TOP";
217+
background-color: #ffe70e;
218+
font-size: 16px;
219+
font-weight: bold;
220+
display: inline;
221+
padding: 5px 10px;
222+
223+
position: absolute;
224+
top: -15px;
225+
right: -25px;
226+
}

0 commit comments

Comments
 (0)